b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,TestBackend,test_spatial_2d_padding,#TestBackend#,1209
Before Change
assert_allclose(zth, ztf, atol=1e-05)
// Test invalid use cases
for backend in (KTH, KTF) :
x = backend.variable(np.random.random(x_shape))
with pytest.raises(ValueError):
backend.spatial_2d_padding(x, padding=padding, data_format="channels_middle")
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: 2
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_random_variables
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