Link.to_gpuin your model to transfer the linear manually (by writing something like
for l in self.ln: l.to_gpu()).
Link.device_resident_acceptinstead. It's not documented yet but the implementation should be something like
def device_resident_accept(self, visitor): super().device_resident_accept(visitor) for l in self.ln: l.device_resident_accept(visitor)
[Masaki Kozuki, chainer] What I write here might be a bit obsolete, but according to chainer/chainer#6423,
chainerx::ArrayNode: A node representing an array in the computational graph. It is owned by an chainerx::ArrayBody.
Also, https://github.com/chainer/chainer/blob/master/chainerx_cc/chainerx/array.h#L46 says Array wraps an ArrayBody.
[Masaki Kozuki, chainer] The installation guides of Chainer & CuPy are enough I think.
For cuda10.0 environment, I think the below is enough according to the above guides.
$ pip install -U setuptools pip $ pip install cupy-cuda100 $ pip install chainer
chainerx.is_available()is also returning
F.sigmoid_cross_entropy](https://docs.chainer.org/en/stable/reference/generated/chainer.functions.sigmoid_cross_entropy.html#chainer.functions.sigmoid_cross_entropy) not enough?
[Tommi Kerola, chainer] https://github.com/chainer/chainer/blob/master/chainer/variable.py#L1393
This method uses :data:
gradas the initial error array. User can manually set a gradient array before calling this method.
So if you set
vector.grad = xp.ones(shape), I think you can backprop vector losses.
[Seiya Tokui, chainer] It is a difficult question repeatedly raised by us, too! I really want to know the essential factor of their success.
The obvious factors that I came up with are: 1) their location (closer to the top-notch researchers/labs, other important partners like NVIDIA, etc., while Chainer is developed in Japan), 2) strong marketing (I heard there was a closing beta period involving researchers outside Facebook. Their website is also fancy from the beginning, maybe attracting young researchers who are the core of DL community), 3) being backed by a big company. I do not think these points explain everything, though.
nm --demangle libchainerx.soI see a bunch of them, which do not seem to be included in CMakeLists.txt. What have I missed? Now I am quiet curious with the compiling process..