1

我已经安装了chainer,但我仍然收到此错误,请帮助修复它!

Traceback (most recent call last):
  File "/home/hoda/Downloads/vae-1-master/source/vae_mnist.py", line 1, in <module>
    from chainer import FunctionSet,Variable
ImportError: cannot import name FunctionSet

这是代码的一部分

from chainer import FunctionSet,Variable
import chainer.functions as F
import numpy
from vae_model import VAE_bernoulli,VAE_gaussian
4

1 回答 1

1

http://docs.chainer.org/en/stable/upgrade.html

删除了一些过时的类和函数chainer.FunctionSet(改用ChainChainList

于 2017-06-02T13:31:19.813 回答