MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / predict_batch

Method predict_batch

include/core/solver.h:1587–1596  ·  view source on GitHub ↗

Predict a single batch */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

to_device_asyncMethod · 0.80
to_hostMethod · 0.80

Tested by

no test coverage detected