(dataset)
| 101 | _mapper: A mapping function that can be used with the tf.data.Dataset API. |
| 102 | """ |
| 103 | def _mapper(dataset): |
| 104 | for k in keys_to_map: |
| 105 | dataset[k + suffix] = batch_word_to_char_ids(dataset[k], word_length) |
| 106 | return dataset |
| 107 | return _mapper |
nothing calls this directly
no test coverage detected
searching dependent graphs…