pub struct Layout { /* private fields */ }Implementations§
Source§impl Layout
impl Layout
pub fn of(graph: &Graph<'_>, alignment: u64) -> Self
pub fn weights(&self) -> &Region
pub fn state(&self) -> &Region
pub fn tensors(&self) -> &Region
pub fn words(&self) -> u64
pub fn seeds(&self) -> &[Seed]
pub fn weight_bytes(&self, placement: Placement, address: u64) -> u64
Auto Trait Implementations§
impl Forget for Layout
impl Freeze for Layout
impl Move for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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