pub struct ParameterMemberSpec { /* private fields */ }Expand description
One physical tensor belonging to a logical parameter group.
Implementations§
Source§impl ParameterMemberSpec
impl ParameterMemberSpec
Sourcepub fn new(
target: impl Into<String>,
global_shape: impl Into<Vec<usize>>,
sharding: MemberSharding,
) -> Self
pub fn new( target: impl Into<String>, global_shape: impl Into<Vec<usize>>, sharding: MemberSharding, ) -> Self
Creates a member with an exact pre-selection checkpoint shape.
Sourcepub fn global_shape(&self) -> &[usize]
pub fn global_shape(&self) -> &[usize]
Returns the complete source shape.
Sourcepub const fn sharding(&self) -> &MemberSharding
pub const fn sharding(&self) -> &MemberSharding
Returns the requested rank-local selection.
Trait Implementations§
Source§impl Clone for ParameterMemberSpec
impl Clone for ParameterMemberSpec
Source§fn clone(&self) -> ParameterMemberSpec
fn clone(&self) -> ParameterMemberSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParameterMemberSpec
impl Debug for ParameterMemberSpec
impl Eq for ParameterMemberSpec
Source§impl PartialEq for ParameterMemberSpec
impl PartialEq for ParameterMemberSpec
impl StructuralPartialEq for ParameterMemberSpec
Auto Trait Implementations§
impl Freeze for ParameterMemberSpec
impl RefUnwindSafe for ParameterMemberSpec
impl Send for ParameterMemberSpec
impl Sync for ParameterMemberSpec
impl Unpin for ParameterMemberSpec
impl UnsafeUnpin for ParameterMemberSpec
impl UnwindSafe for ParameterMemberSpec
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