def check_forward(self, x_data, use_cudnn=True):
x = chainer.Variable(x_data)
y = functions.spatial_pyramid_pooling_2d(
x, self.pyramid_height, self.pooling_class,
use_cudnn=use_cudnn)
self.assertEqual(y.data.dtype, self.dtype)
y_data = cuda.to_cpu(y.data)
self.assertEqual(self.gy.shape, y_data.shape)
test_spatial_pyramid_pooling_2d.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录