611ef6cd62da2535b372613c72fbe1632a930f5f,t3f/neural_test.py,_NeuralTest,testKerasDense,#_NeuralTest#,9

Before Change



  def testKerasDense(self):
    layer = neural.KerasDense(input_dims=[7, 4, 7, 4], output_dims=[5, 5, 5, 5])
    layer(tf.random_normal((20, 28*28)))


class NeuralTestFloat32(tf.test.TestCase, _NeuralTest):

After Change


  def testKerasDense(self):
    // Try to create the layer twice to check that it won"t crush saying the
    // variable already exist.
    x = tf.random_normal((20, 28*28))
    layer = neural.KerasDense(input_dims=[7, 4, 7, 4], output_dims=[5, 5, 5, 5])
    layer(x)
    layer = neural.KerasDense(input_dims=[7, 4, 7, 4], output_dims=[5, 5, 5, 5])
    layer(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

Instances


Project Name: Bihaqo/t3f
Commit Name: 611ef6cd62da2535b372613c72fbe1632a930f5f
Time: 2018-12-29
Author: sasha.v.novikov@gmail.com
File Name: t3f/neural_test.py
Class Name: _NeuralTest
Method Name: testKerasDense


Project Name: GPflow/GPflow
Commit Name: 73a5954fcf6bd3c48391306f93c98bb7dd48287f
Time: 2016-04-13
Author: james.hensman@gmail.com
File Name: GPflow/model.py
Class Name: GPModel
Method Name: predict_f_samples


Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name: RandomNormal
Method Name: __call__


Project Name: jfkirk/tensorrec
Commit Name: e081784a1607abdb41a0ea2a1d3338b9d666db06
Time: 2018-03-04
Author: james.f.kirk@gmail.com
File Name: tensorrec/representation_graphs.py
Class Name: LinearRepresentationGraph
Method Name: connect_representation_graph


Project Name: tensorflow/cleverhans
Commit Name: 47d85a6d73401d60f21be0653bf7bae78b4c459b
Time: 2017-09-22
Author: fartash@google.com
File Name: cleverhans_tutorials/tutorial_models.py
Class Name: Linear
Method Name: set_input_shape


Project Name: tensorflow/tensorboard
Commit Name: 796acb9d94a3440371e44f1a7d41e1d85bfcac55
Time: 2017-08-02
Author: wchargin@gmail.com
File Name: tensorboard/data_compat_test.py
Class Name: MigrateValueTest
Method Name: test_image


Project Name: GPflow/GPflow
Commit Name: 6b8a9a5f0e738d98904ff7c46c79a44bfdd56686
Time: 2016-05-31
Author: alexggmatthews@googlemail.com
File Name: GPflow/model.py
Class Name: GPModel
Method Name: predict_f_samples


Project Name: reinforceio/tensorforce
Commit Name: ccbe291ec9859698a57147b1033d503a7739dfa9
Time: 2017-08-03
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/distributions/gaussian.py
Class Name: Gaussian
Method Name: sample