My Code =
from torch.utils.ffi import _wrap_function
from .__ext import lib as _lib, ffi as _ffi
all = []
def _import_symbols(locals):
for symbol in dir(_lib):
fn = getattr(_lib, symbol)
if callable(fn):
locals[symbol] = _wrap_function(fn, _ffi)
else:
locals[symbol] = fn
all.append(symbol)
_import_symbols(locals())
I get this error =
ImportError(“torch.utils.ffi is deprecated. Please use cpp extensions instead.”)