pub struct SemanticAutogradDesc { /* private fields */ }Expand description
Provenance between one forward output and its autograd tape expansion.
Implementations§
Source§impl SemanticAutogradDesc
impl SemanticAutogradDesc
Sourcepub const fn forward_op(self) -> SemanticOpId
pub const fn forward_op(self) -> SemanticOpId
Return the forward operation.
Sourcepub const fn output(self) -> SemanticValueId
pub const fn output(self) -> SemanticValueId
Return the attached forward output.
Sourcepub const fn output_index(self) -> usize
pub const fn output_index(self) -> usize
Return the output’s index within the forward contract.
Sourcepub const fn backward_first_op(self) -> Option<SemanticOpId>
pub const fn backward_first_op(self) -> Option<SemanticOpId>
Return the first operation in the expanded backward range.
Sourcepub const fn backward_op_count(self) -> usize
pub const fn backward_op_count(self) -> usize
Return the number of operations in the expanded backward range.
Sourcepub const fn is_backward_expanded(self) -> bool
pub const fn is_backward_expanded(self) -> bool
Return whether the backward range has been attached.
Trait Implementations§
Source§impl Clone for SemanticAutogradDesc
impl Clone for SemanticAutogradDesc
impl Copy for SemanticAutogradDesc
Source§impl Debug for SemanticAutogradDesc
impl Debug for SemanticAutogradDesc
impl Eq for SemanticAutogradDesc
Source§impl PartialEq for SemanticAutogradDesc
impl PartialEq for SemanticAutogradDesc
impl StructuralPartialEq for SemanticAutogradDesc
Auto Trait Implementations§
impl Forget for SemanticAutogradDesc
impl Freeze for SemanticAutogradDesc
impl Move for SemanticAutogradDesc
impl RefUnwindSafe for SemanticAutogradDesc
impl Send for SemanticAutogradDesc
impl Sync for SemanticAutogradDesc
impl Unpin for SemanticAutogradDesc
impl UnsafeUnpin for SemanticAutogradDesc
impl UnwindSafe for SemanticAutogradDesc
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