Enum tch::TchError [−][src]
pub enum TchError {
Convert(String),
FileFormat(String),
TensorNameNotFound(String, String),
Io(Error),
Kind(String),
MissingImage(String),
Nul(NulError),
ParseInt(ParseIntError),
Shape(String),
UnknownKind(c_int),
Torch(String),
Zip(ZipError),
}
Expand description
Main library error type.
Variants
Convert(String)
Conversion error.
Tuple Fields of Convert
0: String
FileFormat(String)
Invalid file format.
Tuple Fields of FileFormat
0: String
Missing tensor with name.
Io(Error)
I/O error.
Tuple Fields of Io
0: Error
Kind(String)
Tensor kind error.
Tuple Fields of Kind
0: String
MissingImage(String)
Missing image.
Tuple Fields of MissingImage
0: String
Nul(NulError)
Null pointer.
Tuple Fields of Nul
0: NulError
ParseInt(ParseIntError)
Integer parse error.
Tuple Fields of ParseInt
Shape(String)
Invalid shape.
Tuple Fields of Shape
0: String
UnknownKind(c_int)
Unknown kind
Tuple Fields of UnknownKind
0: c_int
Torch(String)
Errors returned by the Torch C++ API.
Tuple Fields of Torch
0: String
Zip(ZipError)
Zip file format error.
Tuple Fields of Zip
0: ZipError
Implementations
Trait Implementations
Performs the conversion.