#[repr(u32)]pub enum ErrorCode {
ERROR_CODE_NO_ERROR = 0,
ERROR_CODE_OUT_OF_MEMORY = 1,
ERROR_CODE_NOT_SUPPORT = 2,
ERROR_CODE_COMPUTE_SIZE_ERROR = 3,
ERROR_CODE_NO_EXECUTION = 4,
ERROR_CODE_INVALID_VALUE = 5,
ERROR_CODE_INPUT_DATA_ERROR = 10,
ERROR_CODE_CALL_BACK_STOP = 11,
ERROR_CODE_TENSOR_NOT_SUPPORT = 20,
ERROR_CODE_TENSOR_NEED_DIVIDE = 21,
}
Variants§
ERROR_CODE_NO_ERROR = 0
ERROR_CODE_OUT_OF_MEMORY = 1
ERROR_CODE_NOT_SUPPORT = 2
ERROR_CODE_COMPUTE_SIZE_ERROR = 3
ERROR_CODE_NO_EXECUTION = 4
ERROR_CODE_INVALID_VALUE = 5
ERROR_CODE_INPUT_DATA_ERROR = 10
ERROR_CODE_CALL_BACK_STOP = 11
ERROR_CODE_TENSOR_NOT_SUPPORT = 20
ERROR_CODE_TENSOR_NEED_DIVIDE = 21
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)