ToHost

Trait ToHost 

Source
pub trait ToHost<T, D>
where T: GpuDataType, D: Dimension,
{ // Required method fn to_host(&self, manager: &CrossDeviceManager) -> CoreResult<Array<T, D>>; }
Expand description

Extension trait for device arrays to simplify host transfers

Required Methods§

Source

fn to_host(&self, manager: &CrossDeviceManager) -> CoreResult<Array<T, D>>

Transfer the device array to the host

Implementors§

Source§

impl<T, D> ToHost<T, D> for DeviceArray<T, D>
where T: GpuDataType, D: Dimension,