提交 a404d2ed 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Internal Change

PiperOrigin-RevId: 224875931
上级 2d86af34
......@@ -1866,7 +1866,7 @@ class TensorFlowTestCase(googletest.TestCase):
# If a is a tensor then convert it to ndarray
if isinstance(a, ops.Tensor):
if isinstance(a, ops._EagerTensorBase):
return a.numpy()
a = a.numpy()
else:
a = self.evaluate(a)
if not isinstance(a, np.ndarray):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册