Skip to content

Commit abdba4c

Browse files
committed
Changing the exception type.
1 parent 98abe74 commit abdba4c

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
@@ -248,7 +248,7 @@ def _create_payload_header(self, io_formats, neutron_artifacts) -> np.ndarray:
248248
try:
249249
header_data.append(1 if outputs[output_name.decode()] == TensorFormat.CHANNELS_LAST else 0)
250250
except KeyError:
251-
assert 0, f'Output tensor `{output_name.decode()}` not found in the converted model.'
251+
raise AssertionError(f'Output tensor `{output_name.decode()}` not found in the converted model.')
252252

253253
header_data.extend(neutron_artifacts.input_indices)
254254
header_data.extend(neutron_artifacts.output_indices)

0 commit comments

Comments
 (0)