pub enum WeightNormalizer {
All,
Batch,
}
Expand description
Specifies how to normalize the importance weights in a prioritized batch.
Variants§
All
Normalize weights by the maximum weight of all samples in the buffer.
Batch
Normalize weights by the maximum weight of samples in the batch.
Trait Implementations§
source§impl Clone for WeightNormalizer
impl Clone for WeightNormalizer
source§fn clone(&self) -> WeightNormalizer
fn clone(&self) -> WeightNormalizer
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 WeightNormalizer
impl Debug for WeightNormalizer
source§impl<'de> Deserialize<'de> for WeightNormalizer
impl<'de> Deserialize<'de> for WeightNormalizer
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 PartialEq<WeightNormalizer> for WeightNormalizer
impl PartialEq<WeightNormalizer> for WeightNormalizer
source§fn eq(&self, other: &WeightNormalizer) -> bool
fn eq(&self, other: &WeightNormalizer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WeightNormalizer
impl Serialize for WeightNormalizer
impl Copy for WeightNormalizer
impl StructuralPartialEq for WeightNormalizer
Auto Trait Implementations§
impl RefUnwindSafe for WeightNormalizer
impl Send for WeightNormalizer
impl Sync for WeightNormalizer
impl Unpin for WeightNormalizer
impl UnwindSafe for WeightNormalizer
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