Does torch.onnx use jit script/trace to perform its conversion?
That is odd because for
jit trace and script I get
AssertionError: Expected Module but got <class ‘method’>
with torch.onnx.convert everything runs perfectly. When I read the doc you shared carefully, it states that the converter does something equivalent to jit trace.
EDIT:
Do you have any advice on debugging jit script/tracing?