43f740006fb071178e8abb50e34eeee3e48e8fd9,testing/test_param.py,TypeTests,test_specific_dtype,#TypeTests#,74
Before Change
([1.0], np.float32),
(np.array([1, 2, 3], dtype=np.float64), np.float16)
]
for v, vtype in test_data:
p = gpflow.Param(v, dtype=vtype)
self.assertEqual(p.dtype, vtype)
p.compile()
self.assertEqual(p.dtype, vtype)
def test_default_type(self):
s = gpflow.settings.get_settings()
s.dtypes.int_type = self.int_type
s.dtypes.float_type = self.float_type
After Change
([1.0], np.float32),
(np.array([1, 2, 3], dtype=np.float64), np.float16)
]
with self.test_context():
for v, vtype in test_data:
p = gpflow.Param(v, dtype=vtype, autobuild=False)
self.assertEqual(p.dtype, vtype)
p.compile()
self.assertEqual(p.dtype, vtype)
def test_default_type(self):
s = gpflow.settings.get_settings()
s.dtypes.int_type = self.int_type
s.dtypes.float_type = self.float_type
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: GPflow/GPflow
Commit Name: 43f740006fb071178e8abb50e34eeee3e48e8fd9
Time: 2017-11-07
Author: art.art.v@gmail.com
File Name: testing/test_param.py
Class Name: TypeTests
Method Name: test_specific_dtype
Project Name: GPflow/GPflow
Commit Name: 98db3c307d617661e33f0f14595f3347fe2fb4ed
Time: 2017-10-31
Author: art.art.v@gmail.com
File Name: testing/test_methods.py
Class Name: TestMethods
Method Name: test_predict_y
Project Name: GPflow/GPflow
Commit Name: 98db3c307d617661e33f0f14595f3347fe2fb4ed
Time: 2017-10-31
Author: art.art.v@gmail.com
File Name: testing/test_methods.py
Class Name: TestMethods
Method Name: test_predict_density