ec110e784b11727ce9f9e789c06b41bb0e7fa684,tensorflow_transform/coders/example_proto_coder.py,ExampleProtoCoder,decode,#ExampleProtoCoder#Any#,329
Before Change
def decode(self, example_proto):
Decode tf.Example as a tf.transform encoded dict.
if self._serialized:
example = self._decode_example_cache
example.ParseFromString(example_proto)
else:
example = example_proto
feature_map = example.features.feature
return {feature_handler.name: feature_handler.parse_value(feature_map)
for feature_handler in self._feature_handlers}
After Change
@deprecation.deprecated(None, _DECODE_DEPRECATION_MESSAGE)
def decode(self, example_proto):
raise NotImplementedError(_DECODE_DEPRECATION_MESSAGE)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: tensorflow/transform
Commit Name: ec110e784b11727ce9f9e789c06b41bb0e7fa684
Time: 2020-10-16
Author: zoy@google.com
File Name: tensorflow_transform/coders/example_proto_coder.py
Class Name: ExampleProtoCoder
Method Name: decode
Project Name: catalyst-team/catalyst
Commit Name: 45f7651644f05b413ecd9366e7014edc7f0b8a24
Time: 2019-09-06
Author: scitator@gmail.com
File Name: catalyst/contrib/modules/lama.py
Class Name: LamaPooling
Method Name: __init__