pub enum TensorDeviceError {
Show 13 variants
UnsupportedDType(DType),
DTypeMismatch {
expected: DType,
actual: DType,
},
DeviceMismatch,
InvalidBuffer(&'static str),
InvalidOperation(&'static str),
Data(String),
Poisoned,
Execution(ExecutionError),
Rank(RankError),
Network(NetworkError),
Topology(TopologyError),
Work(WorkError),
InProcess(InProcessError),
}Variants§
UnsupportedDType(DType)
DTypeMismatch
DeviceMismatch
InvalidBuffer(&'static str)
InvalidOperation(&'static str)
Data(String)
Poisoned
Execution(ExecutionError)
Rank(RankError)
Network(NetworkError)
Topology(TopologyError)
Work(WorkError)
InProcess(InProcessError)
Trait Implementations§
Source§impl Debug for TensorDeviceError
impl Debug for TensorDeviceError
Source§impl Display for TensorDeviceError
impl Display for TensorDeviceError
Source§impl Error for TensorDeviceError
impl Error for TensorDeviceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ExecutionError> for TensorDeviceError
impl From<ExecutionError> for TensorDeviceError
Source§fn from(error: ExecutionError) -> Self
fn from(error: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<InProcessError> for TensorDeviceError
impl From<InProcessError> for TensorDeviceError
Source§fn from(error: InProcessError) -> Self
fn from(error: InProcessError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for TensorDeviceError
impl From<NetworkError> for TensorDeviceError
Source§fn from(error: NetworkError) -> Self
fn from(error: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<RankError> for TensorDeviceError
impl From<RankError> for TensorDeviceError
Source§impl From<TopologyError> for TensorDeviceError
impl From<TopologyError> for TensorDeviceError
Source§fn from(error: TopologyError) -> Self
fn from(error: TopologyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TensorDeviceError
impl !UnwindSafe for TensorDeviceError
impl Freeze for TensorDeviceError
impl Send for TensorDeviceError
impl Sync for TensorDeviceError
impl Unpin for TensorDeviceError
impl UnsafeUnpin for TensorDeviceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more