pub enum CaptureError {
AlreadyActive,
InvalidDevice,
UnknownBoundary {
boundary: &'static str,
tensor: TensorId,
},
DuplicateBoundary {
boundary: &'static str,
tensor: TensorId,
},
UndeclaredInput {
tensor: TensorId,
},
InvalidInput {
tensor: TensorId,
},
InvalidOutput {
tensor: TensorId,
},
}Expand description
Error returned while finalizing a capture.
Variants§
AlreadyActive
Another capture scope is already active on the device.
InvalidDevice
Capture was requested through a user-facing device using another backend.
UnknownBoundary
A declared boundary tensor was never initialized or referenced.
Fields
DuplicateBoundary
A tensor was declared more than once at the same boundary.
Fields
UndeclaredInput
A tensor dependency was neither initialized nor declared as a runtime input.
InvalidInput
A declared input is produced within the graph rather than supplied externally.
InvalidOutput
A declared output is consumed in place or otherwise cannot survive the graph.
Trait Implementations§
Source§impl Clone for CaptureError
impl Clone for CaptureError
Source§impl Debug for CaptureError
impl Debug for CaptureError
Source§impl Display for CaptureError
impl Display for CaptureError
impl Eq for CaptureError
Source§impl PartialEq for CaptureError
impl PartialEq for CaptureError
impl StructuralPartialEq for CaptureError
Auto Trait Implementations§
impl Freeze for CaptureError
impl RefUnwindSafe for CaptureError
impl Send for CaptureError
impl Sync for CaptureError
impl Unpin for CaptureError
impl UnsafeUnpin for CaptureError
impl UnwindSafe for CaptureError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.