Open karpov3 opened 2 years ago
coremltools.converters.mil.mil.ops.defs.control_flow.list_length is probably the right mil op to use here.
<newbie> .. how would I add the mil op to the TorchScript side ??
# coremltools 5.1.0
from coremltools.converters.mil.mil.ops.defs.control_flow import list_length
list_length([ ]) #TypeError: __init__() takes 1 positional argument but 2 were given
</newbie>
@TobyRoseman thank you for your suggestion. I'm wondering if there is some example how to use it? In my case i have this error that i don't know how to manage.
❓How to support Python build-in functions like len()?
System Information
I am trying to convert my model in Core ML with Coremltools. I had some issue that I replicated in this simple example.
I have this error.
debug=True info
How can I use Python len() funcion inside the model?