b13e6b6d19ba633e4f55f7ab5910f675d203e38a,models/official/resnet/imagenet_input.py,ImageNetTFExampleInput,dataset_parser,#ImageNetTFExampleInput#Any#,86
Before Change
Returns:
Returns a tuple of (image, label) from the TFExample.
keys_to_features = {
"image/encoded": tf.FixedLenFeature((), tf.string, ""),
"image/format": tf.FixedLenFeature((), tf.string, "jpeg"),
"image/class/label": tf.FixedLenFeature([], tf.int64, -1),
"image/class/text": tf.FixedLenFeature([], tf.string, ""),
"image/object/bbox/xmin": tf.VarLenFeature(dtype=tf.float32),
"image/object/bbox/ymin": tf.VarLenFeature(dtype=tf.float32),
"image/object/bbox/xmax": tf.VarLenFeature(dtype=tf.float32),
"image/object/bbox/ymax": tf.VarLenFeature(dtype=tf.float32),
"image/object/class/label": tf.VarLenFeature(dtype=tf.int64),
}
parsed = tf.parse_single_example(value, keys_to_features)
image_bytes = tf.reshape(parsed["image/encoded"], shape=[])
After Change
Returns:
Returns a tuple of (image, label) from the TFExample.
keys_to_features = {
"image/encoded": tf.FixedLenFeature((), tf.string, ""),
"image/class/label": tf.FixedLenFeature([], tf.int64, -1),
}
parsed = tf.parse_single_example(value, keys_to_features)
image_bytes = tf.reshape(parsed["image/encoded"], shape=[])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tensorflow/tpu
Commit Name: b13e6b6d19ba633e4f55f7ab5910f675d203e38a
Time: 2018-12-03
Author: frankchn@google.com
File Name: models/official/resnet/imagenet_input.py
Class Name: ImageNetTFExampleInput
Method Name: dataset_parser
Project Name: tensorflow/transform
Commit Name: 85ccba5da764543900c22f07c9193b98ceb57333
Time: 2021-02-22
Author: zoy@google.com
File Name: tensorflow_transform/beam/tukey_hh_params_integration_test.py
Class Name: TukeyHHParamsIntegrationTest
Method Name: testGaussianizeSparse
Project Name: tensorflow/transform
Commit Name: 03f16fb4c3005ef1a35058f7bbac27947024113c
Time: 2017-10-20
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/coders/example_proto_coder_test.py
Class Name: ExampleProtoCoderTest
Method Name: test_example_proto_coder_default_value