fix str of autogradzero
authorWanchao Liang <wanchaol@users.noreply.github.com>
Tue, 26 Mar 2019 06:44:15 +0000 (23:44 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 26 Mar 2019 06:49:27 +0000 (23:49 -0700)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18442

Differential Revision: D14602880

Pulled By: wanchaol

fbshipit-source-id: ebd00f9bb5f1f7e33964c10d8c9f165b7bb4985f

aten/src/ATen/core/jit_type.h

index 9b18a81..2acba07 100644 (file)
@@ -306,7 +306,7 @@ struct CAFFE2_API AutogradZeroTensorType : public TensorType {
            TensorType::isSubtypeOf(rhs);
   }
   std::string str() const override {
-    return "UndefinedTensor";
+    return "AutogradZeroTensor";
   }
 
   static const TypeKind Kind = TypeKind::AutogradZeroTensorType;