From 147d5746569ac4a6cb54b49ef3c7ce750998863b Mon Sep 17 00:00:00 2001 From: PssUpgradePackage Bot Date: Fri, 3 Apr 2026 17:48:11 -0700 Subject: [PATCH] Upgrade xplat/executorch to Python Scientific Stack 3 (#18692) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/18692 Reviewed By: melicho Differential Revision: D99002753 --- 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_)