e086b02bf4d19fbdcc751bfa876d03f2fcdaf375,tf_encrypted/tensor/int100.py,Int100Factory,tensor,#Int100Factory#Any#,97

Before Change



        if isinstance(value, tf.Tensor):
            if value.dtype is not self.native_type:
                value = tf.cast(value, dtype=self.native_type)
            return Int100Tensor(_crt_decompose(value))

        if isinstance(value, np.ndarray):
            return Int100Tensor(_crt_decompose(value))

After Change


                tf.cast(v, dtype=INT_TYPE)
                for v in _crt_decompose(value)
            ]
            return Int100Tensor(backing)

        if isinstance(value, np.ndarray):
            backing = [
                tf.convert_to_tensor(v, dtype=INT_TYPE)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: mortendahl/tf-encrypted
Commit Name: e086b02bf4d19fbdcc751bfa876d03f2fcdaf375
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int100.py
Class Name: Int100Factory
Method Name: tensor


Project Name: mortendahl/tf-encrypted
Commit Name: 5b81086d43f760dc2a4924d81f7c39b9e9c37d50
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int100.py
Class Name: Int100Factory
Method Name: tensor


Project Name: mortendahl/tf-encrypted
Commit Name: e086b02bf4d19fbdcc751bfa876d03f2fcdaf375
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int100.py
Class Name: Int100Factory
Method Name: one


Project Name: mortendahl/tf-encrypted
Commit Name: e086b02bf4d19fbdcc751bfa876d03f2fcdaf375
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int100.py
Class Name: Int100Factory
Method Name: zero