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
// not supported dtype
After Change
check_single_tensor_operation("reverse", (4, 3, 2), [KTH, KTF], axes=(1, 2))
def test_random_variables(self):
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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_spatial_2d_padding
Project Name: keras-team/keras
Commit Name: 545acc4b66b5fb0ed5457ef7288d836f022c118d
Time: 2018-09-01
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_eye