Type Alias TypedNode

Source
pub type TypedNode = Node<TypedFact, Box<dyn TypedOp>>;
Expand description

Node for TypedModel graph

Aliased Type§

struct TypedNode {
    pub id: usize,
    pub name: String,
    pub inputs: Vec<OutletId>,
    pub op: Box<dyn TypedOp>,
    pub outputs: SmallVec<[Outlet<TypedFact>; 4]>,
}

Fields§

§id: usize

node id in the model

Caution: this id will not be persistent during networks transformation

§name: String

name of the node

This will usually come from the importing framework. tract transformation try to maintain the names accross transformations.

§inputs: Vec<OutletId>

A list of incoming tensors, identified by the node outlet that creates them.

§op: Box<dyn TypedOp>

The actual operation the node performs.

§outputs: SmallVec<[Outlet<TypedFact>; 4]>

List of ouputs, with their descendant and tensor type information.