acbae2cebb13a18412b439ed237fbc23abace69a,tests/keras/layers/test_call.py,TestCall,test_layer_call,#TestCall#,19
Before Change
Y = layer(X)
F = K.function([X], [Y])
x = np .random.randn(nb_samples, input_dim).astype(K.floatx())
y = F([x])[0].astype(K.floatx())
assert_allclose(np.dot(x, W), y)
After Change
Y = layer(X)
F = K.function([X], [Y])
x = np.ones((nb_samples, input_dim)).astype(K.floatx())
y = F([x])[0].astype(K.floatx())
t = np.dot(x, W).astype(K.floatx())
assert_allclose(t, y, rtol=.2)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: keras-team/keras
Commit Name: acbae2cebb13a18412b439ed237fbc23abace69a
Time: 2015-12-05
Author: eder@macbook.com
File Name: tests/keras/layers/test_call.py
Class Name: TestCall
Method Name: test_layer_call
Project Name: nipy/dipy
Commit Name: 0742b80f3c175de082127ee73a7364e173fd60df
Time: 2014-09-30
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_sumsqdiff.py
Class Name:
Method Name: test_compute_residual_displacement_field_ssd_2d
Project Name: nipy/dipy
Commit Name: 0742b80f3c175de082127ee73a7364e173fd60df
Time: 2014-09-30
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_sumsqdiff.py
Class Name:
Method Name: test_compute_residual_displacement_field_ssd_3d
Project Name: deepchem/deepchem
Commit Name: 9fa2f9ea656a6d1c94a36f949494ab471a128576
Time: 2019-08-01
Author: vsomnath@student.ethz.ch
File Name: deepchem/models/tests/test_pretrained.py
Class Name: TestPretrained
Method Name: setUp