b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,TestBackend,test_spatial_2d_padding,#TestBackend#,1209
Before Change
x_shape = (1, 3) + shape
else:
x_shape = (1,) + shape + (3,)
x = np.random.random(x_shape)
xth = KTH.variable(x)
xtf = KTF.variable(x)
zth = KTH.eval(KTH.spatial_2d_padding(xth, padding=padding, data_format=data_format))
ztf = KTF.eval(KTF.spatial_2d_padding(xtf, padding=padding, data_format=data_format))
assert zth.shape == ztf.shape
After Change
xval = np.random.random(x_shape)
for k in BACKENDS:
with pytest.raises(ValueError):
k.spatial_2d_padding(k.variable(xval) , padding=padding,
data_format="channels_middle")
def test_spatial_3d_padding(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: keras-team/keras
Commit Name: b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe
Time: 2017-07-29
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_spatial_2d_padding
Project Name: keras-team/keras
Commit Name: b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe
Time: 2017-07-29
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name: check_single_tensor_operation
Project Name: keras-team/keras
Commit Name: ae72ea0bfe7f7041d6f7580427fa1f69158bab7e
Time: 2018-03-05
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_rnn_no_states