From 9080942afb0f53be24efd3e213a39f1c270b8e5c Mon Sep 17 00:00:00 2001 From: Wanchao Liang Date: Mon, 25 Mar 2019 23:44:15 -0700 Subject: [PATCH] fix str of autogradzero 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aten/src/ATen/core/jit_type.h b/aten/src/ATen/core/jit_type.h index 9b18a81..2acba07 100644 --- a/aten/src/ATen/core/jit_type.h +++ b/aten/src/ATen/core/jit_type.h @@ -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; -- 2.7.4