pub struct TensorProgram {
pub layers: Vec<TensorLayer>,
pub roots: Vec<Wire>,
pub source_size: usize,
pub value_count: usize,
pub wire_order: Vec<Wire>,
pub width: usize,
pub gather_slot_count: usize,
}Fields§
§layers: Vec<TensorLayer>§roots: Vec<Wire>§source_size: usize§value_count: usizeSource cells plus live operations.
wire_order: Vec<Wire>wire_order[packed] is the wire held at that packed position.
width: usizeThe circuit’s width, for full-width results.
gather_slot_count: usizeOne slot per one-hot group that gather reads use.
Implementations§
Source§impl TensorProgram
impl TensorProgram
pub fn stored_weight_count(&self) -> usize
pub fn live_operation_count(&self) -> usize
pub fn gather_read_count(&self) -> usize
Trait Implementations§
Source§impl Clone for TensorProgram
impl Clone for TensorProgram
Auto Trait Implementations§
impl Freeze for TensorProgram
impl RefUnwindSafe for TensorProgram
impl Send for TensorProgram
impl Sync for TensorProgram
impl Unpin for TensorProgram
impl UnsafeUnpin for TensorProgram
impl UnwindSafe for TensorProgram
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