pub struct ReduceStrategy {
    pub use_planes: bool,
    pub shared: bool,
}Fields§
§use_planes: boolIf 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>, ) -> Result<Self, ReduceError>
pub fn new<R: Runtime>(client: &ComputeClient<R::Server>, shared: bool) -> Self
Trait Implementations§
Source§impl Clone for ReduceStrategy
 
impl Clone for ReduceStrategy
Source§fn clone(&self) -> ReduceStrategy
 
fn clone(&self) -> ReduceStrategy
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 ReduceStrategy
 
impl Debug for ReduceStrategy
Source§impl<'de> Deserialize<'de> for ReduceStrategy
 
impl<'de> Deserialize<'de> for ReduceStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ReduceStrategy
 
impl Hash for ReduceStrategy
Source§impl PartialEq for ReduceStrategy
 
impl PartialEq for ReduceStrategy
Source§impl Serialize for ReduceStrategy
 
impl Serialize 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
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.