@@ -0,0 +1,689 @@
+import unittest%0A%0Aimport numpy%0A%0Aimport chainer%0Afrom chainer import cuda%0Afrom chainer import functions%0Afrom chainer import testing%0A%0A%0Aif cuda.available:%0A    cuda.init()%0A%0A%0Aclass TestDropout(unittest.TestCase):%0A%0A    def setUp(self):%0A        self.x = numpy.random.uniform(-1, 1, (2, 3)).astype(numpy.float32)%0A%0A    def check_type_forward(self, x_data):%0A        x = chainer.Variable(x_data)%0A        try:%0A            functions.dropout(x)%0A        except Exception:%0A            self.fail()%0A%0A    def test_type_forward_cpu(self):%0A        self.check_type_forward(self.x)%0A%0A    def test_type_forward_gpu(self):%0A        self.check_type_forward(cuda.to_gpu(self.x))%0A%0A%0Atesting.run_module(__name__, __file__)%0A

Add unittest for dropout