示例#1
0
 def check_backward(self, x_data, gy_data, use_cudnn=True):
     gradient_check.check_backward(functions.LogSoftmax(use_cudnn), x_data,
                                   gy_data, **self.check_backward_options)
示例#2
0
 def check_backward(self, x_data, gy_data, use_cudnn=True):
     gradient_check.check_backward(functions.LogSoftmax(use_cudnn),
                                   x_data,
                                   gy_data,
                                   eps=1e-2,
                                   atol=1e-3)
示例#3
0
 def check_backward(self, x_data, gy_data, use_cudnn='always'):
     with chainer.using_config('use_cudnn', use_cudnn):
         gradient_check.check_backward(functions.LogSoftmax(), x_data,
                                       gy_data,
                                       **self.check_backward_options)