b8be1ed0e949d11310fbea50730d470ad2bb7859,t3f/ops_test.py,TTTensorTest,testCastIntFloat,#TTTensorTest#,137
Before Change
K_3 = np.random.randint(0, high=100, size=(2, 2, 1))
tt_int = TensorTrain([K_1, K_2, K_3], tt_ranks=[1, 2, 2, 1])
for dtype in [tf.float16, tf.float32, tf.float64]:
self.assertEqual(ops.cast(tt_int, dtype).dtype, dtype)
class TTMatrixTest(tf.test.TestCase):
def testFullMatrix2d(self):
np.random.seed(1)
After Change
K_3 = np.random.randint(0, high=100, size=(2, 2, 1))
tt_int = TensorTrain([K_1, K_2, K_3], tt_ranks=[1, 2, 2, 1])
with self.test_session() as sess:
for dtype in [tf.float16, tf.float32, tf.float64]:
casted = ops.cast(tt_int, dtype)
casted_val = sess.run(ops.full(casted))
self.assertEqual(dtype, casted.dtype)
self.assertTrue(dtype, casted_val.dtype)
class TTMatrixTest(tf.test.TestCase):
def testFullMatrix2d(self):
np.random.seed(1)
In pattern: SUPERPATTERN
Frequency: 11
Non-data size: 6
Instances
Project Name: Bihaqo/t3f
Commit Name: b8be1ed0e949d11310fbea50730d470ad2bb7859
Time: 2017-04-02
Author: novikov@bayesgroup.ru
File Name: t3f/ops_test.py
Class Name: TTTensorTest
Method Name: testCastIntFloat
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDelta
Method Name: test_Kxz
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestExpxKxzActiveDims
Method Name: test_quad_active_dims
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDelta
Method Name: test_exKxz
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDiagXcov
Method Name: test_eKxz
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpQuadrature
Method Name: test_exKxz
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpActiveDims
Method Name: test_quad_active_dims
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpQuadrature
Method Name: test_eKzxKxz
Project Name: Bihaqo/t3f
Commit Name: b8be1ed0e949d11310fbea50730d470ad2bb7859
Time: 2017-04-02
Author: novikov@bayesgroup.ru
File Name: t3f/ops_test.py
Class Name: TTTensorTest
Method Name: testCastFloat
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDiagXcov
Method Name: test_eKzxKxz
Project Name: GPflow/GPflow
Commit Name: f990d4612c19b6f87f7d3539d0e4de7845dda3f7
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDelta
Method Name: test_eKdiag