(cls)
| 16 | |
| 17 | @classmethod |
| 18 | def setUpClass(cls): |
| 19 | |
| 20 | x = tf.placeholder(tf.float32, shape=[None, 30]) |
| 21 | net_in = tl.layers.InputLayer(x, name='input') |
| 22 | |
| 23 | net_d1 = tl.layers.DenseLayer(net_in, n_units=10, name='dense1') |
| 24 | net_d2 = tl.layers.DenseLayer(net_in, n_units=10, name='dense2') |
| 25 | net_d3 = tl.layers.DenseLayer(net_in, n_units=10, name='dense3') |
| 26 | |
| 27 | cls.net_stack = tl.layers.StackLayer([net_d1, net_d2, net_d3], axis=1, name='stack') |
| 28 | |
| 29 | cls.net_stack.print_layers() |
| 30 | cls.net_stack.print_params(False) |
| 31 | |
| 32 | cls.net_unstack = tl.layers.UnStackLayer(cls.net_stack, axis=1, name='unstack') |
| 33 | |
| 34 | cls.net_unstack.print_layers() |
| 35 | cls.net_unstack.print_params(False) |
| 36 | |
| 37 | @classmethod |
| 38 | def tearDownClass(cls): |
nothing calls this directly
no test coverage detected