How to script a model using c++ extension? I met this error
RuntimeError:
Could not export Python function call '_DCNv2'. Remove calls to Python functions before export. Did you forget add @script or @script_method annotation? If this is a nn.ModuleList
I think trace is having trouble with the c++ extensions. To make jit.trace work with C++ extension, those C++ operations should be registered to jit. See this link for more information.