pub struct LoadSpecializationConfig {
pub lhs: SpecializationTensorConfig,
pub rhs: SpecializationTensorConfig,
}
Expand description
Configuration for how each input tensor (Lhs and Rhs) is loaded, specifying the plane roles responsible for loading them.
Fields§
§lhs: SpecializationTensorConfig
Load strategy for the Lhs tensor.
rhs: SpecializationTensorConfig
Load strategy for the Rhs tensor.
Implementations§
Source§impl LoadSpecializationConfig
impl LoadSpecializationConfig
Sourcepub fn has_specialization(&self) -> bool
pub fn has_specialization(&self) -> bool
Whether there is specialization in the algorithm
Source§impl LoadSpecializationConfig
impl LoadSpecializationConfig
Sourcepub fn to_plane_roles(
&self,
main_flow: u32,
loader_tasks: MaxLoaderPlanes,
) -> PlaneRoles
pub fn to_plane_roles( &self, main_flow: u32, loader_tasks: MaxLoaderPlanes, ) -> PlaneRoles
Computes how many planes of each role there should be, using the number of planes needed for main execution, and how many planes each loader can handle
The strategy is to find a balanced divisor for loader planes that stays as close as possible to the main execution plane count.
Trait Implementations§
Source§impl Clone for LoadSpecializationConfig
impl Clone for LoadSpecializationConfig
Source§fn clone(&self) -> LoadSpecializationConfig
fn clone(&self) -> LoadSpecializationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LoadSpecializationConfig
impl Debug for LoadSpecializationConfig
Source§impl Default for LoadSpecializationConfig
impl Default for LoadSpecializationConfig
Source§fn default() -> LoadSpecializationConfig
fn default() -> LoadSpecializationConfig
Returns the “default value” for a type. Read more
Source§impl From<LoadSpecializationConfig> for SpecializedLoadingSides
impl From<LoadSpecializationConfig> for SpecializedLoadingSides
Source§fn from(lsc: LoadSpecializationConfig) -> Self
fn from(lsc: LoadSpecializationConfig) -> Self
Converts to this type from the input type.
Source§impl Hash for LoadSpecializationConfig
impl Hash for LoadSpecializationConfig
Source§impl PartialEq for LoadSpecializationConfig
impl PartialEq for LoadSpecializationConfig
impl Copy for LoadSpecializationConfig
impl Eq for LoadSpecializationConfig
impl StructuralPartialEq for LoadSpecializationConfig
Auto Trait Implementations§
impl Freeze for LoadSpecializationConfig
impl RefUnwindSafe for LoadSpecializationConfig
impl Send for LoadSpecializationConfig
impl Sync for LoadSpecializationConfig
impl Unpin for LoadSpecializationConfig
impl UnwindSafe for LoadSpecializationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.