pub struct TensorCorePerformanceBenchmark { /* private fields */ }Expand description
Performance benchmark results for tensor cores
Implementations§
Source§impl TensorCorePerformanceBenchmark
impl TensorCorePerformanceBenchmark
pub fn new() -> Self
pub fn add_result( &mut self, m: usize, n: usize, k: usize, precision: TensorCorePrecision, result: TensorCorePerformanceResult, )
pub fn get_best_precision_for_size( &self, m: usize, n: usize, k: usize, ) -> Option<TensorCorePrecision>
pub fn generate_report(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TensorCorePerformanceBenchmark
impl RefUnwindSafe for TensorCorePerformanceBenchmark
impl Send for TensorCorePerformanceBenchmark
impl Sync for TensorCorePerformanceBenchmark
impl Unpin for TensorCorePerformanceBenchmark
impl UnsafeUnpin for TensorCorePerformanceBenchmark
impl UnwindSafe for TensorCorePerformanceBenchmark
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> 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