126664f626f28f20e9f460c1cf5f6bf4643ce096,testing/test_data_object.py,TestDataHolderSimple,test_types,#TestDataHolderSimple#,26

Before Change


            self.m._needs_recompile = False

    def test_types(self):
        assert self.m.X.value.dtype == settings.np_float
        assert self.m.Y.value.dtype == settings.np_float
        assert self.m.Z.value.dtype == settings.np_float

    def test_same_shape(self):

After Change



    def test_types(self):
        with self.test_context():
            m, _ = self.setup()
            self.assertEqual(m.X.dtype, settings.np_float)
            self.assertEqual(m.Y.dtype, settings.np_float)
            self.assertEqual(m.Z.dtype, settings.np_float)
            self.assertEqual(m.X.read_value().dtype, settings.np_float)
            self.assertEqual(m.Y.read_value().dtype, settings.np_float)
            self.assertEqual(m.Z.read_value().dtype, settings.np_float)
            m.compile()
            self.assertEqual(m.X.dtype, settings.np_float)
            self.assertEqual(m.Y.dtype, settings.np_float)
            self.assertEqual(m.Z.dtype, settings.np_float)
            self.assertEqual(m.X.read_value().dtype, settings.np_float)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderSimple
Method Name: test_types


Project Name: neuroailab/tnn
Commit Name: bc3ecfd2f455f0b98b334c94285c1810899a3da7
Time: 2017-07-05
Author: anayebi@stanford.edu
File Name: tnn/cell.py
Class Name:
Method Name: crop_func


Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderSimple
Method Name: test_same_shape