I tried to convert an pytorch *.pt file to dlc with snpe 2.18.0.240101. but it failed with the message as follows
2024-01-25 04:51:19,104 - 230 - ERROR - Encountered Error: The following operators are not implemented: ['aten::new_zeros', 'aten::copy_'] Traceback (most recent call last): File "/opt/qcom/aistack/snpe/2.18.0.240101/bin/x86_64-linux-clang/snpe-pytorch-to-dlc", line 47, in main converter = PyTorchConverterFrontend(args) File "/opt/qcom/aistack/snpe/2.18.0.240101/lib/python/qti/aisw/converters/pytorch/pytorch_to_ir.py", line 40, in __init__ super(PyTorchConverterFrontend, self).__init__(args, File "/opt/qcom/aistack/snpe/2.18.0.240101/lib/python/qti/aisw/converters/relay/relay_to_ir.py", line 297, in __init__ self.importer.convert_to_relay(self.input_model_path, File "/opt/qcom/aistack/snpe/2.18.0.240101/lib/python/qti/aisw/converters/relay/importers/pytorch_importer.py", line 664, in convert_to_relay self.mod, self.params = from_pytorch(pytorch_model, input_model_path, shape_list, self.dtype_dict, File "/opt/qcom/aistack/snpe/2.18.0.240101/lib/python/qti/tvm/relay/frontend/pytorch.py", line 5350, in from_pytorch converter.report_missing_conversion(op_names, custom_op_factory) File "/opt/qcom/aistack/snpe/2.18.0.240101/lib/python/qti/tvm/relay/frontend/pytorch.py", line 4099, in report_missing_conversion raise NotImplementedError(msg) NotImplementedError: The following operators are not implemented: ['aten::new_zeros', 'aten::copy_']
I tried to converted it with the command as follows
snpe-pytorch-to-dlc --input_network Sceneflow-IRS-BGNet-Plus.pt --input_dim input "1,1,512,640" --input_dim input "1,1,512,640" --output_path=Sceneflow-IRS-BGNet-Plus.dlc Thanks
I found a solution by myself avoiding APIs which call aten::new_zeros' and 'aten::copy_'. However, another error can be seen as follows.
2024-01-29 11:50:28,728 - 256 - INFO - Using injective.cpu for subtract based on highest priority (10)