chainer.testing.fix_random

chainer.testing.fix_random(*, setup_method='setUp', teardown_method='tearDown')[source]

Decorator that fixes random numbers in a test.

This decorator can be applied to either a test case class or a test method. It should not be applied within condition.retry or condition.repeat.