pub trait CopyToHostDispatch: Send + 'static {
// Required methods
fn dtype(&self) -> DType;
fn run(
self: Box<Self>,
stream: Arc<CudaStream>,
completion: Arc<dyn CompletionStrategy>,
);
}Expand description
Trait object behind crate::device::DeviceMsg::CopyToHost.
Carries the typed source GpuRef<T> plus host destination buffer.