Modernize override (#61744)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61744

Test Plan: Sandcastle

Reviewed By: malfet

Differential Revision: D29717320

fbshipit-source-id: 6eea4295ee2e5572ab337620be412376fcc2f3cc
This commit is contained in:
Richard Barnes
2021-07-23 23:03:21 -07:00
committed by Facebook GitHub Bot
parent d2e03dc484
commit ee44d73e59
43 changed files with 108 additions and 163 deletions
+2 -2
View File
@@ -1051,11 +1051,11 @@ TEST(DataLoaderTest, MakeDataLoaderDefaultsAsExpected) {
}
struct UnsizedDataset : public datasets::Dataset<UnsizedDataset> {
// NOLINTNEXTLINE(cppcoreguidelines-explicit-virtual-functions,modernize-use-override)
// NOLINTNEXTLINE(cppcoreguidelines-explicit--functions,modernize-use-override)
torch::data::Example<> get(size_t i) {
return {torch::ones(i), torch::ones(i)};
}
// NOLINTNEXTLINE(cppcoreguidelines-explicit-virtual-functions,modernize-use-override)
// NOLINTNEXTLINE(cppcoreguidelines-explicit--functions,modernize-use-override)
torch::optional<size_t> size() const noexcept {
return torch::nullopt;
}