b95fcf7f52aca8ad0b1afb3cfc64c8eed534fafe,tests/keras/backend/backend_test.py,TestBackend,test_random_variables,#TestBackend#,178
Before Change
ztf = KTF.eval(KTF.random_uniform_variable((2, 3), 0, 1))
assert zth.shape == ztf.shape
zth = KTH.eval(KTH.random_normal_variable((2, 3), 0, 1))
ztf = KTF.eval(KTF.random_normal_variable((2, 3), 0, 1))
assert zth.shape == ztf.shape
After Change
check_single_tensor_operation("random_uniform_variable", (2, 3), BACKENDS,
low=0., high=1.,
shape_or_val=False, assert_value_equality=False)
check_single_tensor_operation("random_normal_variable", (2, 3), BACKENDS,
mean=0., scale=1.,
shape_or_val=False, assert_value_equality=False)
// not supported dtype
for dtype in ["int16", "int32", "int64", "uint8", "uint16", "double"]:
with pytest.raises(ValueError):
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_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
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