MCPcopy Create free account
hub / github.com/evilsocket/cake / forward_batch

Method forward_batch

cake-core/src/cake/sharding/client.rs:165–174  ·  view source on GitHub ↗

Executes the worker's pipeline with multiple batched steps for this tensor.

(
        &mut self,
        x: &Tensor,
        batch: Vec<(String, usize, usize)>,
        _: &mut Context,
    )

Source from the content-addressed store, hash-verified

163
164 /// Executes the worker's pipeline with multiple batched steps for this tensor.
165 async fn forward_batch(
166 &mut self,
167 x: &Tensor,
168 batch: Vec<(String, usize, usize)>,
169 _: &mut Context,
170 ) -> Result<Tensor> {
171 log::debug!("forwarding batch of {} elements", batch.len());
172 self.forward_request(Message::from_batch(x, batch))
173 .await
174 }
175
176 async fn goodbye(&mut self) -> Result<()> {
177 self.request(Message::Goodbye).await?;

Callers

nothing calls this directly

Calls 1

forward_requestMethod · 0.80

Tested by

no test coverage detected