Type Alias PulsedNode

Source
pub type PulsedNode = Node<PulsedFact, Box<dyn PulsedOp>>;

Aliased Type§

struct PulsedNode {
    pub id: usize,
    pub name: String,
    pub inputs: Vec<OutletId>,
    pub op: Box<dyn PulsedOp>,
    pub outputs: SmallVec<[Outlet<PulsedFact>; 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 PulsedOp>

The actual operation the node performs.

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

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