Fixes tf.bool.as_numpy_dtype to return np.bool_ instead of np.bool (which is the same as Python bool).

PiperOrigin-RevId: 353340422
Change-Id: Ie2a243a5ab2d1372308d63b0ec2c34b9c3f0084c
This commit is contained in:
Peng Wang 2021-01-22 16:23:32 -08:00 committed by TensorFlower Gardener
parent c306f73ce9
commit 8bf282a345

View File

@ -518,7 +518,7 @@ _TF_TO_NP = {
types_pb2.DT_INT64:
np.int64,
types_pb2.DT_BOOL:
np.bool,
np.bool_,
types_pb2.DT_QINT8:
_np_qint8,
types_pb2.DT_QUINT8: