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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def forward(self, inputs, device):
     x, = inputs
     return functions.expm1(x),
Ejemplo n.º 4
0
 def forward(self, inputs, device):
     x, = inputs
     return functions.expm1(x),