Enum coaster::tensor::Error [] [src]

pub enum Error {
    DeviceError(DeviceError),
    InvalidRemove(&'static str),
    InvalidShape(&'static str),
    CapacityExceeded,
    UninitializedMemory,
}

Errors than can occur when synchronizing memory.

Variants

Error caused by operations with device: allocation, memory synchronization, etc.

Unable to remove Memory copy from SharedTensor.

Shape provided for reshaping is not compatible with old shape.

Maximal number of backing memories has been reached.

Memory is requested for reading, but it hasn't been initialized.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Copy for Error
[src]

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<DeviceError> for Error
[src]

Performs the conversion.