I use the Chainer v1.9.0, but got an AssertionError when i run the catgan_test.py. I guess that the version of Chainer we have used are different.
$ python catgan_test.py
Traceback (most recent call last):
File "catgan_test.py", line 70, in
fake_x=gen(z,test=True).data
File "catgan_test.py", line 53, in call
h1=F.leaky_relu(self.bn0(self.l0(z),test),slope=0.1)
File "/usr/local/lib/python2.7/dist-packages/chainer/links/connection/linear.py", line 72, in call
return linear.linear(x, self.W, self.b)
File "/usr/local/lib/python2.7/dist-packages/chainer/functions/connection/linear.py", line 79, in linear
return LinearFunction()(x, W, b)
File "/usr/local/lib/python2.7/dist-packages/chainer/function.py", line 115, in call
self._check_data_type_forward(in_data)
File "/usr/local/lib/python2.7/dist-packages/chainer/function.py", line 182, in _check_data_type_forward
in_type = type_check.get_types(in_data, 'in_types', False)
File "/usr/local/lib/python2.7/dist-packages/chainer/utils/type_check.py", line 46, in get_types
_get_type(name, i, x, accept_none) for i, x in enumerate(data))
File "/usr/local/lib/python2.7/dist-packages/chainer/utils/type_check.py", line 46, in
_get_type(name, i, x, accept_none) for i, x in enumerate(data))
File "/usr/local/lib/python2.7/dist-packages/chainer/utils/type_check.py", line 60, in _get_type
isinstance(array, cuda.ndarray))
AssertionError