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


        if isinstance(value, tf.Tensor):
            backing = [
                tf.cast(v, dtype=INT_TYPE)
                for v in _crt_decompose(value)
            ]
            return Int100Tensor(backing)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: 6f22c639c814f2f437bfd31a81459ca708ee643a
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int100.py
Class Name: Int100Factory
Method Name: sample_uniform


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