8f30d2ace4a7888af8e9cbb87b082227b547f2ac,tf_encrypted/tensor/prime.py,PrimePlaceholder,feed_from_native,#PrimePlaceholder#Any#,163
Before Change
def feed_from_native(self, value: np.ndarray) -> Dict[tf.Tensor, np.ndarray]:
assert isinstance(value, np.ndarray), type(value)
return self.feed_from_same(self.factory.tensor(value))
def feed_from_same(self, value: PrimeTensor) -> Dict[tf.Tensor, np.ndarray]:
assert isinstance(value, PrimeTensor), type(value)
return {
After Change
def feed_from_native(self, value: np.ndarray) -> Dict[tf.Tensor, np.ndarray]:
assert isinstance(value, np.ndarray), type(value)
return {
self.placeholder: value
}
def feed_from_same(self, value: PrimeTensor) -> Dict[tf.Tensor, np.ndarray]:
assert isinstance(value, PrimeTensor), type(value)
return {
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: mortendahl/tf-encrypted
Commit Name: 8f30d2ace4a7888af8e9cbb87b082227b547f2ac
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/prime.py
Class Name: PrimePlaceholder
Method Name: feed_from_native
Project Name: mortendahl/tf-encrypted
Commit Name: 8f30d2ace4a7888af8e9cbb87b082227b547f2ac
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int32.py
Class Name: Int32Placeholder
Method Name: feed_from_native
Project Name: mortendahl/tf-encrypted
Commit Name: 8f30d2ace4a7888af8e9cbb87b082227b547f2ac
Time: 2019-01-10
Author: mortendahlcs@gmail.com
File Name: tf_encrypted/tensor/int64.py
Class Name: Int64Placeholder
Method Name: feed_from_native