Enum burn_tensor::Distribution
source · Variants§
Implementations§
source§impl<P> Distribution<P>where
Standard: Distribution<P>,
P: SampleUniform,
impl<P> Distribution<P>where
Standard: Distribution<P>,
P: SampleUniform,
pub fn sampler(self, rng: &mut StdRng) -> DistributionSampler<'_, P>
source§impl<P> Distribution<P>where
P: Element,
impl<P> Distribution<P>where
P: Element,
pub fn convert<E: Element>(self) -> Distribution<E>
Trait Implementations§
source§impl<P: Clone> Clone for Distribution<P>
impl<P: Clone> Clone for Distribution<P>
source§fn clone(&self) -> Distribution<P>
fn clone(&self) -> Distribution<P>
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 moreimpl<P: Copy> Copy for Distribution<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for Distribution<P>where
P: RefUnwindSafe,
impl<P> Send for Distribution<P>where
P: Send,
impl<P> Sync for Distribution<P>where
P: Sync,
impl<P> Unpin for Distribution<P>where
P: Unpin,
impl<P> UnwindSafe for Distribution<P>where
P: UnwindSafe,
Blanket Implementations§
§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.