DeviceTensorExt

Trait DeviceTensorExt 

Source
pub trait DeviceTensorExt {
    // Required methods
    fn to_device_tensor(&self) -> TractResult<&DeviceTensor>;
    fn as_device_tensor(&self) -> Option<&DeviceTensor>;
    fn to_device_tensor_mut(&mut self) -> TractResult<&mut DeviceTensor>;
    fn as_device_tensor_mut(&mut self) -> Option<&mut DeviceTensor>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl DeviceTensorExt for Tensor

Implementors§