pub struct PoolingRecommender { /* private fields */ }Expand description
Automatic pooling recommendation engine
Analyzes access patterns and provides recommendations for optimal pooling configuration.
Implementations§
Source§impl PoolingRecommender
impl PoolingRecommender
Sourcepub fn with_policy(policy: PoolingPolicy) -> Self
pub fn with_policy(policy: PoolingPolicy) -> Self
Create a recommender with custom policy
Sourcepub fn record_allocation(&mut self, shape: &[usize])
pub fn record_allocation(&mut self, shape: &[usize])
Record a buffer allocation
Sourcepub fn recommend_shapes(&self, elem_size: usize) -> Vec<String>
pub fn recommend_shapes(&self, elem_size: usize) -> Vec<String>
Get shapes that should be pooled based on recorded patterns
Sourcepub fn generate_report(&self, elem_size: usize) -> PoolingReport
pub fn generate_report(&self, elem_size: usize) -> PoolingReport
Generate a report with pooling recommendations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolingRecommender
impl RefUnwindSafe for PoolingRecommender
impl Send for PoolingRecommender
impl Sync for PoolingRecommender
impl Unpin for PoolingRecommender
impl UnwindSafe for PoolingRecommender
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more