SwitchTensor

Type Alias SwitchTensor 

Source
pub type SwitchTensor<'l, const T: Tu, D, Chip, Cluster, Slice, Time, Packet> = StreamTensor<'l, T, PositionSwitch, D, Chip, Cluster, Slice, Time, Packet>;
Expand description

Tensor streamed after the switch engine.

Aliased Type§

pub struct SwitchTensor<'l, const T: Tu, D, Chip, Cluster, Slice, Time, Packet> { /* private fields */ }

Implementations§

Source§

impl<'l, const T: Tu, D: Scalar, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> SwitchTensor<'l, T, D, Chip, Cluster, Slice, Time, Packet>

Source

pub fn collect<Time2: M, Packet2: M>( self, ) -> CollectTensor<'l, T, D, Chip, Cluster, Slice, Time2, Packet2>

Normalizes packet to exactly 32 bytes (one flit).

Pads to flit-aligned boundary, then splits: inner 32 bytes become Packet2, outer flit portion is absorbed into Time2. For packets already ≤ 32 bytes, only padding is added.