def testInvalidDataFormat(self):
height, width = 7, 9
with self.test_session():
images = random_ops.random_uniform((5, height, width, 3), seed=1)
with self.assertRaisesRegexp(ValueError, 'data_format'):
layers_lib.convolution2d(images, 32, 3, data_format='CHWN')
layers_test.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录