I was following the instructions here to create a custom c++ class and use it in Python with TouchScript. But I’m having trouble loading the library. Here’s my code and the stacktrace:
>>> import torch >>> torch.classes.load_library('Array.cp37-win_amd64.pyd') Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'torch.classes' has no attribute 'load_library'
The custom operator tutorial worked fine for me: I can load the script properly. Does anyone know the reason behind this error or how to solve it?