We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b268f commit e9d5e4bCopy full SHA for e9d5e4b
backends/nxp/backend/ir/converter/conversion/translator.py
@@ -601,7 +601,7 @@ def numpy_type_to_tf_lite(numpy_type: np.dtype) -> TensorType: # noqa C901
601
elif numpy_type == np.int64:
602
return TensorType.INT64
603
604
- elif numpy_type == np.string_:
+ elif numpy_type == np.bytes_:
605
return TensorType.STRING
606
607
elif numpy_type == np.bool_:
@@ -659,7 +659,7 @@ def tf_lite_type_to_numpy(tfl_type: TensorType) -> np.ScalarType: # noqa C901
659
return np.dtype(np.int64)
660
661
elif tfl_type == TensorType.STRING:
662
- return np.dtype(np.string_)
+ return np.dtype(np.bytes_)
663
664
elif tfl_type == TensorType.BOOL:
665
return np.dtype(np.bool_)
0 commit comments