@@ -0,0 +1,909 @@
+import unittest%0A%0Aimport chainer%0Afrom chainer import testing%0Aimport numpy as np%0A%0Afrom chainerrl.links import noisy_linear%0A%0A%0A@testing.parameterize(*testing.product(%7B%0A    'initialized': %5BFalse, True%5D,%0A    'nobias': %5BFalse, True%5D,%0A%7D))%0Aclass TestFactorizedNoisyLinear(unittest.TestCase):%0A    def test_calls(self):%0A        l_uninitialized_new = noisy_linear.FactorizedNoisyLinear(%0A            5, nobias=self.nobias)%0A        l_uninitialized_old = noisy_linear.FactorizedNoisyLinear(%0A            None, 5, nobias=self.nobias)%0A        l_initialized = noisy_linear.FactorizedNoisyLinear(%0A            6, 5, nobias=self.nobias)%0A        for l in %5Bl_uninitialized_new, l_uninitialized_old, l_initialized%5D:%0A            x_data = np.arange(12).astype(np.float32).reshape((2, 6))%0A            x = chainer.Variable(x_data)%0A            l(chainer.Variable(x_data))%0A            l(x_data + 1)%0A            l(x_data.reshape((2, 3, 2)))%0A

Add test