8abc4a03c82104f694b4340715e558708a873984,inputs/Cifar100.py,Cifar100,_read,#Cifar100#,61

Before Change



        // The first byte represent the coarse-label.
        // Extract the second byte that"s the fine-label and convert it from uint8->int32.
        result["label"] = tf.cast(
            tf.slice(record_bytes, [1], [label_bytes - 1]), tf.int32)

        // The remaining bytes after the label represent the image, which we reshape
        // from [depth * height * width] to [depth, height, width].
        depth_major = tf.reshape(
            tf.slice(record_bytes, [label_bytes], [image_bytes]),
            [result["depth"], result["height"], result["width"]])

        // Convert from [depth, height, width] to [height, width, depth].
        image = tf.cast(tf.transpose(depth_major, [1, 2, 0]), tf.float32)

        // Convert from [0, 255] -> [0, 1]
        image = tf.divide(image, 255.0)

After Change


        // The first byte represent the coarse-label.
        // Extract the second byte that"s the fine-label and convert it from uint8->int32.
        result["label"] = tf.squeeze(
            tf.cast(tf.slice(record_bytes, [1], [label_bytes - 1]), tf.int32))

        // The remaining bytes after the label represent the image, which we reshape
        // from [depth * height * width] to [depth, height, width].
        depth_major = tf.reshape(
            tf.slice(record_bytes, [label_bytes], [image_bytes]),
            [result["depth"], result["height"], result["width"]])

        // Convert from [depth, height, width] to [height, width, depth].
        image = tf.cast(tf.transpose(depth_major, [1, 2, 0]), tf.float32)

        // Convert from [0, 255] -> [0, 1]
        image = tf.divide(image, 255.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: galeone/dynamic-training-bench
Commit Name: 8abc4a03c82104f694b4340715e558708a873984
Time: 2017-02-01
Author: nessuno@nerdz.eu
File Name: inputs/Cifar100.py
Class Name: Cifar100
Method Name: _read


Project Name: galeone/dynamic-training-bench
Commit Name: 8abc4a03c82104f694b4340715e558708a873984
Time: 2017-02-01
Author: nessuno@nerdz.eu
File Name: inputs/Cifar100.py
Class Name: Cifar100
Method Name: _read


Project Name: tensorflow/models
Commit Name: cb93c20504c41b63bf29ca6df5a576ee81c3728b
Time: 2020-10-13
Author: gardener@tensorflow.org
File Name: official/vision/beta/modeling/heads/instance_heads.py
Class Name: MaskHead
Method Name: call


Project Name: galeone/dynamic-training-bench
Commit Name: 8abc4a03c82104f694b4340715e558708a873984
Time: 2017-02-01
Author: nessuno@nerdz.eu
File Name: inputs/Cifar10.py
Class Name: Cifar10
Method Name: _read


Project Name: IndicoDataSolutions/finetune
Commit Name: 98c6d3bc803e5d04be425e6b2eabca3ea707ed0e
Time: 2020-08-24
Author: madison@indico.io
File Name: finetune/nn/target_blocks.py
Class Name:
Method Name: _apply_class_weight