pub struct RangeObserver {
pub min_value: f32,
pub max_value: f32,
pub has_data: bool,
}Expand description
The running minimum and maximum of the values it has observed, for fitting
an activation’s scale from calibration inputs (C++ RangeObserver). Before
any observation the range is [0, 0].
Fields§
§min_value: f32Smallest value observed.
max_value: f32Largest value observed.
has_data: boolWhether anything has been observed.
Implementations§
Trait Implementations§
Source§impl Clone for RangeObserver
impl Clone for RangeObserver
impl Copy for RangeObserver
Source§impl Debug for RangeObserver
impl Debug for RangeObserver
Source§impl Default for RangeObserver
impl Default for RangeObserver
Source§impl PartialEq for RangeObserver
impl PartialEq for RangeObserver
impl StructuralPartialEq for RangeObserver
Auto Trait Implementations§
impl Freeze for RangeObserver
impl RefUnwindSafe for RangeObserver
impl Send for RangeObserver
impl Sync for RangeObserver
impl Unpin for RangeObserver
impl UnsafeUnpin for RangeObserver
impl UnwindSafe for RangeObserver
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