pub struct CaptureContract {
pub measurement_scope: MeasurementScope,
pub operations: CoverageLevel,
pub tensors: CoverageLevel,
pub gradients: CoverageLevel,
pub gradient_contract: Option<GradientContract>,
pub logical_memory: CoverageLevel,
pub physical_memory: CoverageLevel,
pub device_timing: CoverageLevel,
pub required_semantic_labels: Vec<String>,
pub gpu_expected_semantic_labels: Vec<String>,
pub cpu_only_semantic_labels: Vec<String>,
}Fields§
§measurement_scope: MeasurementScope§operations: CoverageLevel§tensors: CoverageLevel§gradients: CoverageLevel§gradient_contract: Option<GradientContract>§logical_memory: CoverageLevel§physical_memory: CoverageLevel§device_timing: CoverageLevel§required_semantic_labels: Vec<String>§gpu_expected_semantic_labels: Vec<String>Required application spans expected to project onto the GPU. When both semantic-class lists are empty, all required semantic labels retain the legacy GPU-expected meaning.
cpu_only_semantic_labels: Vec<String>Required application spans that must not appear in an Nsight GPU projection report.
Implementations§
Trait Implementations§
Source§impl Clone for CaptureContract
impl Clone for CaptureContract
Source§fn clone(&self) -> CaptureContract
fn clone(&self) -> CaptureContract
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 moreSource§impl Debug for CaptureContract
impl Debug for CaptureContract
Source§impl Default for CaptureContract
impl Default for CaptureContract
Source§fn default() -> CaptureContract
fn default() -> CaptureContract
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CaptureContract
impl<'de> Deserialize<'de> for CaptureContract
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 CaptureContract
Source§impl PartialEq for CaptureContract
impl PartialEq for CaptureContract
Source§impl Serialize for CaptureContract
impl Serialize for CaptureContract
impl StructuralPartialEq for CaptureContract
Auto Trait Implementations§
impl Freeze for CaptureContract
impl RefUnwindSafe for CaptureContract
impl Send for CaptureContract
impl Sync for CaptureContract
impl Unpin for CaptureContract
impl UnsafeUnpin for CaptureContract
impl UnwindSafe for CaptureContract
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more