Predict a single batch */
| 1585 | |
| 1586 | /** Predict a single batch */ |
| 1587 | virtual void predict_batch(int batch_id) { |
| 1588 | Timer batch_timer("Predict Batch", log_frequency); |
| 1589 | batch.to_device_async(); |
| 1590 | // Predict |
| 1591 | { |
| 1592 | Timer timer("Predict Kernel", log_frequency); |
| 1593 | CHECK(predict_dispatch()) << "Can't find a prediction kernel for `" << solver->model << "`"; |
| 1594 | logits.to_host(); |
| 1595 | } |
| 1596 | } |
| 1597 | |
| 1598 | /** |
| 1599 | * @param protocols protocols of embeddings |
nothing calls this directly
no test coverage detected