Converts examples to dictionaries.
(example)
| 70 | |
| 71 | |
| 72 | def 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 | |
| 86 | def from_tfrecords(input_pattern): |
nothing calls this directly
no test coverage detected
searching dependent graphs…