def testStackRelu(self):
height, width = 3, 3
with self.test_session():
images = random_ops.random_uniform(
(5, height * width * 3), seed=1, name='images')
output = _layers.stack(images, layers_lib.relu, [10, 20, 30])
self.assertEqual(output.op.name, 'Stack/fully_connected_3/Relu')
self.assertListEqual(output.get_shape().as_list(), [5, 30])
layers_test.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录