Open darylsew opened 1 month ago
by cloning the repo and putting in a pdb, i was able to get the info i needed.
-> scope_names = node.get_scope_info()[0]
(Pdb) node
%3934 = callmethod[name=forward](%proj.1, %input.19)
Converting PyTorch Frontend ==> MIL Ops: 1%|▍ | 707/50058 [00:20<00:19, 2507.84 ops/s]
%3934 = callmethod[name=forward](%proj.1, %input.19)
2 questions:
1) why wouldn't forward calls be supported? am i expected to have my entire graph be flat without any classes?
2) would there be any issue with having this exception in ops.py print str(node)? might make a PR, as node.get_scope_info() is kinda useless - (Pdb) node.get_scope_info()[0] ['0', '3934']
I'm not understanding the issue here. Please add a complete example to reproduce the issue. Please include all nesscessary import statements and the call to coremltools.convert
.
🐞Describing the bug
Stack Trace
To Reproduce
Please add a minimal code example that can reproduce the error when running it.
Seems to happen any time we call a function. My real issue is that I cannot tell from the error message which line of Python code corresponds to the error. I think it goes away in this case if i replace x with x.forward(..)
If the model conversion succeeds, but there is a numerical mismatch in predictions, please include the code used for comparisons.
System environment (please complete the following information):
Additional context