pub struct Threshold<D: Float, T, const RANK: usize> {
pub threshold: f64,
pub value: f64,
/* private fields */
}Expand description
Threshold activation layer: passes x through if x > threshold, else outputs value.
Fields§
§threshold: f64The threshold.
value: f64The replacement value for inputs at or below the threshold.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, T, const RANK: usize> Freeze for Threshold<D, T, RANK>
impl<D, T, const RANK: usize> RefUnwindSafe for Threshold<D, T, RANK>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T, const RANK: usize> Send for Threshold<D, T, RANK>
impl<D, T, const RANK: usize> Sync for Threshold<D, T, RANK>
impl<D, T, const RANK: usize> Unpin for Threshold<D, T, RANK>
impl<D, T, const RANK: usize> UnsafeUnpin for Threshold<D, T, RANK>
impl<D, T, const RANK: usize> UnwindSafe for Threshold<D, T, RANK>where
D: UnwindSafe,
T: UnwindSafe,
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