f0f1a14cd6d54337f3c6be15645ca61d8ceafbdc,examples/mnist/convert.py,,encode_image,#Any#,11

Before Change




def encode_image(value):
    return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value.tostring()]))


def decode_image(value):
    image = tf.decode_raw(value, tf.uint8)

After Change



def encode_image(value):
  Encode images into a tf.train.Feature for a TFRecord.
  bytes_list = tf.train.BytesList(value=[value.tostring()])
  return tf.train.Feature(bytes_list=bytes_list)


def decode_image(value):
  Decode the image from a tf.train.Feature in a TFRecord.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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_image


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_image


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_image