6f539ad2324ddccc18b6ac39e4a2f4aeb12173a2,tests/test_layers_spatial_transformer.py,,,#,30

Before Change


net.print_params(False)

shape = s.outputs.get_shape().as_list()
if shape[1:] != [40, 40, 1]:
    raise Exception("shape do not match")

if len(net.all_layers) != 9:
    raise Exception("layers do not match")

if len(net.all_params) != 12:
    raise Exception("params do not match")

if net.count_params() != 1667980:
    raise Exception("params do not match")

After Change


        self.assertEqual(self.net_n_params, 1667980)


if __name__ == "__main__":

    // tf.logging.set_verbosity(tf.logging.INFO)
    tf.logging.set_verbosity(tf.logging.DEBUG)

    unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 6f539ad2324ddccc18b6ac39e4a2f4aeb12173a2
Time: 2018-04-17
Author: DEKHTIARJonathan@users.noreply.github.com
File Name: tests/test_layers_spatial_transformer.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 20ef4a860325d1735df038d4e4b8c7de5e013ed3
Time: 2020-03-11
Author: sven@anyscale.io
File Name: rllib/tests/test_multi_agent_pendulum.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: 6f539ad2324ddccc18b6ac39e4a2f4aeb12173a2
Time: 2018-04-17
Author: DEKHTIARJonathan@users.noreply.github.com
File Name: tests/test_layers_normalization.py
Class Name:
Method Name: