Skip to content

Commit e9d5e4b

Browse files
PssUpgradePackage Botfacebook-github-bot
authored andcommitted
Upgrade xplat/executorch to Python Scientific Stack 3 (#18692)
Summary: Pull Request resolved: #18692 Reviewed By: melicho Differential Revision: D99002753
1 parent 15b268f commit e9d5e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backends/nxp/backend/ir/converter/conversion/translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def numpy_type_to_tf_lite(numpy_type: np.dtype) -> TensorType: # noqa C901
601601
elif numpy_type == np.int64:
602602
return TensorType.INT64
603603

604-
elif numpy_type == np.string_:
604+
elif numpy_type == np.bytes_:
605605
return TensorType.STRING
606606

607607
elif numpy_type == np.bool_:
@@ -659,7 +659,7 @@ def tf_lite_type_to_numpy(tfl_type: TensorType) -> np.ScalarType: # noqa C901
659659
return np.dtype(np.int64)
660660

661661
elif tfl_type == TensorType.STRING:
662-
return np.dtype(np.string_)
662+
return np.dtype(np.bytes_)
663663

664664
elif tfl_type == TensorType.BOOL:
665665
return np.dtype(np.bool_)

0 commit comments

Comments
 (0)