pub struct QuantMap { /* private fields */ }Expand description
Per-graph map of quantized tensors. Lookup is O(1).
Implementations§
Source§impl QuantMap
impl QuantMap
pub fn new() -> Self
pub fn get(&self, id: NodeId) -> Option<QuantScheme>
pub fn insert(&mut self, id: NodeId, scheme: QuantScheme) -> Option<QuantScheme>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = (&NodeId, &QuantScheme)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantMap
impl RefUnwindSafe for QuantMap
impl Send for QuantMap
impl Sync for QuantMap
impl Unpin for QuantMap
impl UnsafeUnpin for QuantMap
impl UnwindSafe for QuantMap
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