From 993cc0afe5417120720523894df4422d538e4a7b Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Tue, 20 Jan 2026 12:52:58 -0800 Subject: [PATCH] Upgrade xplat/executorch to Python Scientific Stack 3 (#16714) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/16714 Differential Revision: D90851692 --- backends/nxp/backend/ir/converter/conversion/translator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/nxp/backend/ir/converter/conversion/translator.py b/backends/nxp/backend/ir/converter/conversion/translator.py index 1fe195843c0..6b3384cd4d9 100755 --- a/backends/nxp/backend/ir/converter/conversion/translator.py +++ b/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 elif numpy_type == np.int64: return TensorType.INT64 - elif numpy_type == np.string_: + elif numpy_type == np.bytes_: return TensorType.STRING elif numpy_type == np.bool_: @@ -659,7 +659,7 @@ def tf_lite_type_to_numpy(tfl_type: TensorType) -> np.ScalarType: # noqa C901 return np.dtype(np.int64) elif tfl_type == TensorType.STRING: - return np.dtype(np.string_) + return np.dtype(np.bytes_) elif tfl_type == TensorType.BOOL: return np.dtype(np.bool_)