pub struct HardwareOptimizer { /* private fields */ }Expand description
Hardware optimizer ハードウェア最適化器
Implementations§
Source§impl HardwareOptimizer
impl HardwareOptimizer
Sourcepub fn optimal_data_layout(&self, tensor_shape: &[usize]) -> DataLayout
pub fn optimal_data_layout(&self, tensor_shape: &[usize]) -> DataLayout
Get optimal data layout for hardware ハードウェアに最適なデータレイアウト取得
Sourcepub fn optimal_tile_size(&self, operation: &str) -> (usize, usize)
pub fn optimal_tile_size(&self, operation: &str) -> (usize, usize)
Calculate optimal tile size for operations 演算の最適タイルサイズ計算
Sourcepub fn capabilities(&self) -> &HardwareCapabilities
pub fn capabilities(&self) -> &HardwareCapabilities
Get hardware capabilities ハードウェア機能取得
Sourcepub fn selected_accelerator(&self) -> Option<&AcceleratorInfo>
pub fn selected_accelerator(&self) -> Option<&AcceleratorInfo>
Get selected accelerator 選択済みアクセラレータ取得
Auto Trait Implementations§
impl Freeze for HardwareOptimizer
impl RefUnwindSafe for HardwareOptimizer
impl Send for HardwareOptimizer
impl Sync for HardwareOptimizer
impl Unpin for HardwareOptimizer
impl UnwindSafe for HardwareOptimizer
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