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:
Michael Liu
2019-02-13 20:51:55 -08:00
committed by Facebook Github Bot
parent 84bdf86034
commit 92a516b9ff
21 changed files with 39 additions and 36 deletions
+1 -1
View File
@@ -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_ << ")";
}