Enum collenchyma::tensor::Error [] [src]

pub enum Error {
    MissingSource(&'static str),
    MissingDestination(&'static str),
    InvalidMemory(&'static str),
    InvalidMemoryAllocation(&'static str),
    InvalidRemove(&'static str),
    MemoryAllocationError(Error),
    MemorySynchronizationError(Error),
    InvalidShape(&'static str),
}

Errors than can occur when synchronizing memory.

Variants

MissingSource

No copy on source device.

MissingDestination

No copy on destination device.

InvalidMemory

No valid MemoryType provided. Other than expected.

InvalidMemoryAllocation

No memory allocation on specified device happened.

InvalidRemove

Unable to remove Memory copy from SharedTensor.

MemoryAllocationError

Framework error at memory allocation.

MemorySynchronizationError

Framework error at memory synchronization.

InvalidShape

Shape provided for reshaping is not compatible with old shape.

Trait Implementations

impl From<Error> for Error

fn from(err: Error) -> Error

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl Clone for Error

fn clone(&self) -> Error

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Error

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result