mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
Apply modernize-use-override - 2/2
Summary: Use C++11’s override and remove virtual where applicable. Change are automatically generated. Reviewed By: Orvid Differential Revision: D14054721 fbshipit-source-id: 15d266fa1779b1e3ea6270f00841d7fb1e4d44ee
This commit is contained in:
committed by
Facebook Github Bot
parent
84bdf86034
commit
92a516b9ff
@@ -839,7 +839,7 @@ TEST_F(ModuleTest, PrettyPrint) {
|
||||
struct TestModule : torch::nn::Module {
|
||||
TestModule(int x, float y) : x_(x), y_(y) {}
|
||||
|
||||
void pretty_print(std::ostream& stream) const {
|
||||
void pretty_print(std::ostream& stream) const override {
|
||||
stream << "TestModule(x=" << x_ << ", y=" << y_ << ")";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user