Executes the worker's pipeline with multiple batched steps for this tensor.
(
&mut self,
x: &Tensor,
batch: Vec<(String, usize, usize)>,
_: &mut Context,
)
| 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?; |
nothing calls this directly
no test coverage detected