pub struct Buffer {
pub name: String,
/* private fields */
}Expand description
A named non-learnable tensor buffer (e.g., running statistics).
Unlike Parameters, buffers are not tracked by optimizers but are
persisted in checkpoints alongside parameters. Clone shares the
underlying Rc, so the checkpoint system can write through to the
same cell the owning module holds.
Fields§
§name: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buffer
impl !RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl UnsafeUnpin for Buffer
impl !UnwindSafe for Buffer
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