Build the model.
()
| 29 | |
| 30 | |
| 31 | def model_provider(): |
| 32 | """Build the model.""" |
| 33 | |
| 34 | print_rank_0('building BERT model ...') |
| 35 | |
| 36 | model = BertModel( |
| 37 | num_tokentypes=2, |
| 38 | add_binary_head=True, |
| 39 | parallel_output=True) |
| 40 | |
| 41 | return model |
| 42 | |
| 43 | |
| 44 | def get_batch(data_iterator): |
nothing calls this directly
no test coverage detected