pub struct TopoNode {
pub node: String,
pub deps: Vec<String>,
pub gates: Vec<String>,
pub dims: Vec<usize>,
pub plots: Vec<PlotOut>,
pub cost_ns: Option<f64>,
pub fidelity: FidelityOut,
pub deriv: Option<String>,
}Expand description
One node of the static graph, in step (= topo) order. Roots have empty deps. dims is the
node’s element shape ([] scalar); the client resolves dep dims by name from topology.
gates are the node’s control edges — the client’s gate set is the union over all nodes.
Fields§
§node: String§deps: Vec<String>§gates: Vec<String>§dims: Vec<usize>§plots: Vec<PlotOut>§cost_ns: Option<f64>Estimated nanoseconds this node spends per step — what ranks the graph by cost. None until
it has been stepped enough times for the estimate to be about the node rather than the
machine; see the recorder’s cost module for what “estimated” means here.
fidelity: FidelityOut§deriv: Option<String>Simplified ∂out/∂dep, one line per dep — None where the kernel has no algebra. Static:
the body is fixed, so only the values it is read against move tick to tick.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TopoNode
impl<'de> Deserialize<'de> for TopoNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TopoNode
Auto Trait Implementations§
impl Freeze for TopoNode
impl RefUnwindSafe for TopoNode
impl Send for TopoNode
impl Sync for TopoNode
impl Unpin for TopoNode
impl UnsafeUnpin for TopoNode
impl UnwindSafe for TopoNode
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