pub struct LinearizedGraph<Op: GraphOperation> { /* private fields */ }Expand description
Graph produced by linearizing a primitive computation graph.
Implementations§
Source§impl<Op: GraphOperation> LinearizedGraph<Op>
impl<Op: GraphOperation> LinearizedGraph<Op>
Sourcepub fn into_graph(self) -> Graph<Op>
pub fn into_graph(self) -> Graph<Op>
Consume this value and return the lower-level graph representation.
Sourcepub fn tangent_inputs(&self) -> &[(Op::InputKey, LocalValueId)]
pub fn tangent_inputs(&self) -> &[(Op::InputKey, LocalValueId)]
Tangent input keys and local value ids.
Sourcepub fn tangent_outputs(&self) -> &[Option<LocalValueId>]
pub fn tangent_outputs(&self) -> &[Option<LocalValueId>]
Tangent outputs aligned with requested primal outputs.
Auto Trait Implementations§
impl<Op> Freeze for LinearizedGraph<Op>
impl<Op> RefUnwindSafe for LinearizedGraph<Op>where
<Op as GraphOperation>::InputKey: RefUnwindSafe,
Op: RefUnwindSafe,
impl<Op> Send for LinearizedGraph<Op>
impl<Op> Sync for LinearizedGraph<Op>
impl<Op> Unpin for LinearizedGraph<Op>
impl<Op> UnsafeUnpin for LinearizedGraph<Op>
impl<Op> UnwindSafe for LinearizedGraph<Op>
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