cleverhans
我使用以下内容安装Colab
:
!pip install -qq -e git+http://github.com/tensorflow/cleverhans.git#egg=cleverhans
import sys
sys.path.append('/content/src/cleverhans')
import cleverhans
它似乎运作良好。然后我使用以下内容:
from cleverhans.utils_keras import KerasModelWrapper
wrap = KerasModelWrapper(network)
我得到:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-42-bf6d85d04ab3> in <module>()
----> 1 from cleverhans.utils_keras import KerasModelWrapper
2 wrap = KerasModelWrapper(network)
ModuleNotFoundError: No module named 'cleverhans.utils_keras'