MCPcopy Create free account
hub / github.com/google-research/language / decode_record

Function decode_record

language/xsp/model/input_utils.py:142–146  ·  view source on GitHub ↗

(key, serialized SequenceExample) to dict of .

(record)

Source from the content-addressed store, hash-verified

140 with tf.variable_scope(scope):
141
142 def decode_record(record):
143 """(key, serialized SequenceExample) to dict of <feature name, Tensor>."""
144 decode_items = feature_keys + label_keys
145 decoded = sequence_decoder.decode(record, items=decode_items)
146 return dict(list(zip(decode_items, decoded)))
147
148 tf.logging.info('Reading from sources: ' + str(data_sources))
149

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…