pub enum TensorFiniteValidation {
Strict,
OutputOnly,
Trusted,
}Expand description
How aggressively a selector validates that f32 values are finite.
Finiteness validation is a full pass over the tensor copy. For a
ReadWriteF32 selector the strict policy scans the native values and the
committed output, so a large mutable capture pays for two passes per
callback. Relax the policy when the caller already trusts the data.
Variants§
Strict
Reject a non-finite native value before the handler runs and a non-finite handler output before commit. This is the default.
OutputOnly
Skip the pre-handler scan; still reject a non-finite committed output.
Trusted
Skip both scans. The caller guarantees finite values.
Trait Implementations§
Source§impl Clone for TensorFiniteValidation
impl Clone for TensorFiniteValidation
Source§fn clone(&self) -> TensorFiniteValidation
fn clone(&self) -> TensorFiniteValidation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TensorFiniteValidation
Source§impl Debug for TensorFiniteValidation
impl Debug for TensorFiniteValidation
Source§impl Default for TensorFiniteValidation
impl Default for TensorFiniteValidation
Source§fn default() -> TensorFiniteValidation
fn default() -> TensorFiniteValidation
Returns the “default value” for a type. Read more
impl Eq for TensorFiniteValidation
Source§impl PartialEq for TensorFiniteValidation
impl PartialEq for TensorFiniteValidation
impl StructuralPartialEq for TensorFiniteValidation
Auto Trait Implementations§
impl Freeze for TensorFiniteValidation
impl RefUnwindSafe for TensorFiniteValidation
impl Send for TensorFiniteValidation
impl Sync for TensorFiniteValidation
impl Unpin for TensorFiniteValidation
impl UnsafeUnpin for TensorFiniteValidation
impl UnwindSafe for TensorFiniteValidation
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