Skip to content

Commit ca7f0b3

Browse files
committed
NXP backend: Add tensor format support for permute_copy.
1 parent 5508874 commit ca7f0b3

File tree

4 files changed

+551
-33
lines changed

4 files changed

+551
-33
lines changed

backends/nxp/backend/ir/converter/node_converter.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ def builder(self) -> AtenModelBuilderDirector:
185185
"""
186186
return self.context.tflite_builder
187187

188+
@property
189+
def neutron_target_spec(self) -> NeutronTargetSpec:
190+
"""
191+
Get an instance of NeutronTargetSpec from the conversion context.
192+
:return: NeutronTargetSpec instance.
193+
"""
194+
return self.builder.neutron_target_spec
195+
188196
def _create_tflite_op_with_io_tensors(self, node: Node) -> tflite_model.Operator:
189197
"""
190198
Create TFLite op wrapper with input/output tensors added into 'tmp_inputs' and 'tmp_outputs'.

0 commit comments

Comments
 (0)