Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of examples to be a multiple of the batch size, because the TPU requires a fixed batch size. The alternative is to drop the last batch, which is bad bec
| 57 | |
| 58 | |
| 59 | class PaddingInputExample(object): |
| 60 | """Fake example so the num input examples is a multiple of the batch size. |
| 61 | When running eval/predict on the TPU, we need to pad the number of examples |
| 62 | to be a multiple of the batch size, because the TPU requires a fixed batch |
| 63 | size. The alternative is to drop the last batch, which is bad because it means |
| 64 | the entire output data won't be generated. |
| 65 | We use this class instead of `None` because treating `None` as padding |
| 66 | battches could cause silent errors. |
| 67 | """ |
| 68 | |
| 69 | |
| 70 | class InputExample(object): |