From 2efedf42a15da0021101f913e47f8b615ec9cfba Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Wed, 21 Sep 2022 16:29:03 +0800 Subject: [PATCH] fix(mge/tensor): modifiy tensor print suppress options GitOrigin-RevId: 58940f9aeccf5a74281c6c4b59beb66b60e6af4b --- imperative/python/megengine/tensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imperative/python/megengine/tensor.py b/imperative/python/megengine/tensor.py index 781258670..ccc7e29a6 100644 --- a/imperative/python/megengine/tensor.py +++ b/imperative/python/megengine/tensor.py @@ -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) -- GitLab