b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,TestBackend,test_spatial_2d_padding,#TestBackend#,1209
Before Change
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
assert_allclose(zth, ztf, atol=1e-05)
// Test invalid use cases
After Change
x_shape = (1, 3) + shape
else:
x_shape = (1,) + shape + (3,)
check_single_tensor_operation("spatial_2d_padding", x_shape, BACKENDS,
padding=padding, data_format=data_format)
// Test invalid use cases
xval = np.random.random(x_shape)
for k in BACKENDS:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: TestBackend
Method Name: test_tile
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_repeat_elements