f0f1a14cd6d54337f3c6be15645ca61d8ceafbdc,examples/securenn/conv_convert.py,,encode,#Any#Any#,29
Before Change
def encode(image, label):
return tf.train.Example(features=tf.train.Features(feature={
"image": encode_image(image),
"label": encode_label(label)
}))
def decode(serialized_example):
features = tf.parse_single_example(serialized_example, features={
After Change
def encode(image, label):
Encode an instance as a tf.train.Example for a TFRecord.
feature_dict = {"image": encode_image(image), "label": encode_label(label)}
features = tf.train.Features(feature=feature_dict)
return tf.train.Example(features=features)
def decode(serialized_example):
Decode an instance from a tf.train.Example in a TFRecord.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: mortendahl/tf-encrypted
Commit Name: f0f1a14cd6d54337f3c6be15645ca61d8ceafbdc
Time: 2019-05-10
Author: jason@dropoutlabs.com
File Name: examples/securenn/conv_convert.py
Class Name:
Method Name: encode
Project Name: mortendahl/tf-encrypted
Commit Name: f0f1a14cd6d54337f3c6be15645ca61d8ceafbdc
Time: 2019-05-10
Author: jason@dropoutlabs.com
File Name: examples/federated-learning/convert.py
Class Name:
Method Name: encode
Project Name: mortendahl/tf-encrypted
Commit Name: f0f1a14cd6d54337f3c6be15645ca61d8ceafbdc
Time: 2019-05-10
Author: jason@dropoutlabs.com
File Name: examples/mnist/convert.py
Class Name:
Method Name: encode