Skip to content

Commit 3c87af3

Browse files
committed
Changing assert to AssertionError.
1 parent 9b27884 commit 3c87af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/nxp/nxp_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _create_payload_header(self, io_formats, neutron_artifacts) -> np.ndarray:
242242
try:
243243
header_data.append(1 if inputs[input_name.decode()] == TensorFormat.CHANNELS_LAST else 0)
244244
except KeyError:
245-
assert 0, f'Input tensor `{input_name.decode()}` not found in the converted model.'
245+
raise AssertionError(f'Input tensor `{input_name.decode()}` not found in the converted model.')
246246

247247
for output_name in neutron_artifacts.output_names:
248248
try:

0 commit comments

Comments
 (0)