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

Function postprocess_example

language/fruit/tf_utils.py:72–83  ·  view source on GitHub ↗

Converts examples to dictionaries.

(example)

Source from the content-addressed store, hash-verified

70
71
72def postprocess_example(example):
73 """Converts examples to dictionaries."""
74 return {
75 "inputs":
76 maybe_decode(example["inputs"]),
77 "targets":
78 maybe_decode(example["targets"]),
79 "generatable_surfaces":
80 json.loads(maybe_decode(example["generatable_surfaces"])),
81 "id":
82 example["id"]
83 }
84
85
86def from_tfrecords(input_pattern):

Callers

nothing calls this directly

Calls 1

maybe_decodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…