提交 486ac209 编写于 作者: A Alexandre Passos 提交者: TensorFlower Gardener

as_numpy_dtype is a property (so this effectively returns 0)

PiperOrigin-RevId: 285859645
Change-Id: Ifd3656ef665ae19591414ab6051dd19a68b99bf4
上级 2dc7a885
......@@ -255,10 +255,10 @@ class BoundedTensorSpec(TensorSpec):
raise ValueError("maximum is not compatible with shape. "
"Message: {!r}.".format(exception))
self._minimum = np.array(minimum, dtype=self.dtype.as_numpy_dtype())
self._minimum = np.array(minimum, dtype=self.dtype.as_numpy_dtype)
self._minimum.setflags(write=False)
self._maximum = np.array(maximum, dtype=self.dtype.as_numpy_dtype())
self._maximum = np.array(maximum, dtype=self.dtype.as_numpy_dtype)
self._maximum.setflags(write=False)
@classmethod
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册