f5a2b259b26bc173bf854cf5c8f306a1c21f15fe,txtgen/modules/networks_test.py,FeedForwardNetworkTest,test_feedforward,#FeedForwardNetworkTest#,19

Before Change


        _ = nn(tf.ones([64, 16, 16]))
        self.assertEqual(len(nn.trainable_variables),
                         len(hparams["layers"]) * 2)
        self.assertEqual(len(nn.layer_outputs), len(hparams["layers"]))

if __name__ == "__main__":
    tf.test.main()

After Change


        nn = FeedForwardNetwork(hparams=hparams)

        print(nn.hparams.todict())
        print(nn(tf.placeholder(dtype=tf.float32, shape=(None, 16))))
        //
        // self.assertEqual(len(nn.layers), len(hparams["layers"]))
        // _ = nn(tf.ones([64, 16, 16]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: asyml/texar
Commit Name: f5a2b259b26bc173bf854cf5c8f306a1c21f15fe
Time: 2017-11-29
Author: 695742297@qq.com
File Name: txtgen/modules/networks_test.py
Class Name: FeedForwardNetworkTest
Method Name: test_feedforward


Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_sym


Project Name: tensorflow/cleverhans
Commit Name: f9dd2e3636db61ee1b4d32ee4f494fd9e71adc12
Time: 2017-03-29
Author: ngp5056@cse.psu.edu
File Name: cleverhans/attacks.py
Class Name: FastGradientMethod
Method Name: generate_np