pub enum GradFlow {
Propagates,
Severs,
LayoutDependent,
Unknown,
}Expand description
How an op affects gradient connectivity relative to its tensor inputs.
Variants§
Propagates
Gradients flow through all tensor operands (ordinary differentiable op).
Severs
Explicitly cuts the autograd graph (detach, apply_op*_no_bwd, …).
LayoutDependent
Gradient exists only under layout/contiguity assumptions the analyzer cannot prove.
Unknown
Not enough information.
Trait Implementations§
impl Copy for GradFlow
impl Eq for GradFlow
impl StructuralPartialEq for GradFlow
Auto Trait Implementations§
impl Freeze for GradFlow
impl RefUnwindSafe for GradFlow
impl Send for GradFlow
impl Sync for GradFlow
impl Unpin for GradFlow
impl UnsafeUnpin for GradFlow
impl UnwindSafe for GradFlow
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