Closed Hakuyume closed 5 years ago
This is not a bug because it's currently expected. There's an ongoing PR (#5986) to improve how concrete links implement this kind of code.
The issue hasn't been fixed.
@toslunar What's remaining? The stack overflow issue is tracked at #6825.
The code in #6825 is a simplification (by @kmaehashi and me) of the code here to reproduce a specific error. Let's keep this issue open until @Hakuyume confirms it.
Thank you for fixing. However, ChainerCV still doesn't work well... I'm investigating.
I confirmed this issue was fixed in the master branch. Thank you!
I found that
chainer==6.0.0b2
breaks my code.I'm using a helper class that contains a numpy/cupy array and do something with it. The device of this array can be switched by
to_cpu/to_gpu
method. The link class that uses this helper class overridesto_cpu/to_gpu
method to call the helper's ones.In
chainer==6.0.0b2
, a parent link does not callto_cpu/to_gpu
of child links. So the following code does not work.