def check_forward(self, x_data): x = chainer.Variable(x_data) y = F.expm1(x) testing.assert_allclose(numpy.expm1(self.x), y.data, atol=1e-7, rtol=1e-7)
def check_forward(self, x_data): x = chainer.Variable(x_data) y = F.expm1(x) testing.assert_allclose( numpy.expm1(self.x), y.data, atol=1e-7, rtol=1e-7)
def forward(self, inputs, device): x, = inputs return functions.expm1(x),