Open hacx opened 1 year ago
@hacx - I've never seen this error before. In order to help, we need to be able to reproduce the problem. Cat you give us a minimal example to reproduce the problem? Also let us know which version of PyTorch you are using.
❓Question
Using: Coremltools 6.2
I'm getting this error although the input i use for the model is torch.Tensor. (When i print the type of the input i forward to the model i get "<class 'torch.Tensor'>"). And yes, i did eval and trace.
When i trace the model i get this warning in console:
/miniconda3/lib/python3.9/site-packages/torch/jit/_trace.py:753: UserWarning: The input to trace is already a ScriptModule, tracing it is a no-op. Returning the object as is.
This is the error when i run convert:
Error: