pub struct TensorInspectionOptions {
pub max_samples: usize,
}Expand description
Bounds for one TensorInspection.
max_samples limits all logical element reads, including the preview. It
is capped at MAX_INSPECTION_SAMPLES so a host cannot accidentally turn
an inspector click into an unbounded traversal.
Fields§
§max_samples: usizeMaximum number of logical elements to inspect; zero produces metadata only.
Trait Implementations§
Source§impl Clone for TensorInspectionOptions
impl Clone for TensorInspectionOptions
Source§fn clone(&self) -> TensorInspectionOptions
fn clone(&self) -> TensorInspectionOptions
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 TensorInspectionOptions
Source§impl Debug for TensorInspectionOptions
impl Debug for TensorInspectionOptions
Source§impl Default for TensorInspectionOptions
impl Default for TensorInspectionOptions
Source§impl<'de> Deserialize<'de> for TensorInspectionOptions
impl<'de> Deserialize<'de> for TensorInspectionOptions
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
impl Eq for TensorInspectionOptions
Source§impl PartialEq for TensorInspectionOptions
impl PartialEq for TensorInspectionOptions
Source§fn eq(&self, other: &TensorInspectionOptions) -> bool
fn eq(&self, other: &TensorInspectionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TensorInspectionOptions
impl Serialize for TensorInspectionOptions
impl StructuralPartialEq for TensorInspectionOptions
Auto Trait Implementations§
impl Freeze for TensorInspectionOptions
impl RefUnwindSafe for TensorInspectionOptions
impl Send for TensorInspectionOptions
impl Sync for TensorInspectionOptions
impl Unpin for TensorInspectionOptions
impl UnsafeUnpin for TensorInspectionOptions
impl UnwindSafe for TensorInspectionOptions
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