ImportError: cannot import name 'OperatorAsModule' from 'odl.contrib.torch'
gaopinghai opened this issue · 1 comments
gaopinghai commented
When importing OperatorAsModule
using code from odl.contrib.torch import OperatorAsModule
, I get the error below:
ImportError: cannot import name 'OperatorAsModule' from 'odl.contrib.torch'
My environments are:
Linux: Ubuntu 20.04
python: 3.8.5
pytorch: 1.7.1
odl: 1.0.0.dev0
What's the problem?
gaopinghai commented
The error was caused by dival script. After I reinstall the dival package using pip, The error dissappeared.