mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
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:
committed by
Facebook GitHub Bot
parent
d2e03dc484
commit
ee44d73e59
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user