pub struct LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> { /* private fields */ }
Expand description
| base implementation of sparse/non-sparse | gradient computation | | bool GradientNeedIndices = false> |
Trait Implementations§
source§impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> GetGradientDefs for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>
impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> GetGradientDefs for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>
fn get_gradient_defs(&mut self) -> Vec<OperatorDef>
Auto Trait Implementations§
impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> RefUnwindSafe for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>where ForwardOp: RefUnwindSafe, ReducerDef: RefUnwindSafe, ReducerGradient: RefUnwindSafe,
impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> Send for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>where ForwardOp: Send, ReducerDef: Send, ReducerGradient: Send,
impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> Sync for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>where ForwardOp: Sync, ReducerDef: Sync, ReducerGradient: Sync,
impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> Unpin for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>where ForwardOp: Unpin, ReducerDef: Unpin, ReducerGradient: Unpin,
impl<ForwardOp, ReducerDef, ReducerGradient, const SparseFused: bool, const GradientNeedIndices: bool> UnwindSafe for LengthsOpGetGradient<ForwardOp, ReducerDef, ReducerGradient, SparseFused, GradientNeedIndices>where ForwardOp: UnwindSafe, ReducerDef: UnwindSafe, ReducerGradient: UnwindSafe,
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.