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.”)
I have a code written in python 2.7, and I want to execute it in python 3.7. I have a error in compiling “setup.py” says this: AttributeError: ‘MSVCCompiler’ object has no attribute ‘compiler_so’
Can you help me with that?