def setUp(self):
self.x = numpy.random.uniform(-1, 1, (2, 2)).astype(numpy.float32)
# `0` is required to avoid NaN
self.t = numpy.array([self.t_value, 0], dtype=numpy.int32)
self.original_debug = chainer.is_debug()
chainer.set_debug(True)
test_softmax_cross_entropy.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录