提交 2efedf42 编写于 作者: M Megvii Engine Team

fix(mge/tensor): modifiy tensor print suppress options

GitOrigin-RevId: 58940f9aeccf5a74281c6c4b59beb66b60e6af4b
上级 411253f8
......@@ -152,7 +152,7 @@ class Tensor(_Tensor, ArrayMethodMixin):
def __repr__(self):
piece = "{}(".format(self.__class__.__name__)
with np.printoptions(precision=4, suppress=True):
with np.printoptions(precision=4, suppress=False):
piece += "{}".format(str(self.numpy()))
if self.dtype != np.float32:
piece += ", dtype={}".format(np.dtype(self.dtype).name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册