pub struct ReduceStrategy {
pub use_planes: bool,
pub shared: bool,
}
Fields§
§use_planes: bool
If true and the compute client support plane instructions, then try using them in the kernel. It could still be impossible to use plane instructions depending on the memory layout of the tensors.
If true, all units within a single cube cooperate to reduce a single item in the output. Else, each unit or plane (if planes is true) reduce a single item by itself.
Implementations§
Source§impl ReduceStrategy
impl ReduceStrategy
pub fn validate<R: Runtime>( self, client: &ComputeClient<R::Server, R::Channel>, ) -> Result<Self, ReduceError>
pub fn fallback_strategy<R: Runtime>( client: &ComputeClient<R::Server, R::Channel>, ) -> Self
Trait Implementations§
Source§impl Clone for ReduceStrategy
impl Clone for ReduceStrategy
Source§fn clone(&self) -> ReduceStrategy
fn clone(&self) -> ReduceStrategy
Returns a copy 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 ReduceStrategy
impl Debug for ReduceStrategy
Source§impl Hash for ReduceStrategy
impl Hash for ReduceStrategy
Source§impl PartialEq for ReduceStrategy
impl PartialEq for ReduceStrategy
impl Copy for ReduceStrategy
impl Eq for ReduceStrategy
impl StructuralPartialEq for ReduceStrategy
Auto Trait Implementations§
impl Freeze for ReduceStrategy
impl RefUnwindSafe for ReduceStrategy
impl Send for ReduceStrategy
impl Sync for ReduceStrategy
impl Unpin for ReduceStrategy
impl UnwindSafe for ReduceStrategy
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