chainerx.is_backprop_required

chainerx.is_backprop_required()

Returns whether the backpropagation is enabled in the current thread.

The result is affect by chainerx.no_backprop_mode() and chainerx.force_backprop_mode().