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
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
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
Mutably borrows from an owned value. Read more