chainer.set_debug

chainer.set_debug(debug)[source]

Set the debug mode.

Note

This method changes global state. When you use this method on multi-threading environment, it may affects other threads.

Parameters:debug (bool) – New debug mode.