Create a conv+transformer model for benchmarking.
()
| 160 | |
| 161 | |
| 162 | def create_model(): |
| 163 | """Create a conv+transformer model for benchmarking.""" |
| 164 | return SmallTransformerModel().to(device) |
| 165 | |
| 166 | |
| 167 | def train_and_benchmark(loader, max_batches=160, epochs=10, prefetch_device=None): |
no test coverage detected