Struct OperatorExperimentReceipt
pub struct OperatorExperimentReceipt {Show 13 fields
pub experiment_id: String,
pub operator_digest: u64,
pub source_digest: u64,
pub fidelity_contract: FidelityContract,
pub transfer_bandwidth_gbps: Option<f64>,
pub local_bandwidth_gbps: Option<f64>,
pub lut_setup_ns: u64,
pub cold_latency_ns: u64,
pub warm_latency_ns: u64,
pub memory: OperatorMemoryBreakdown,
pub numerical_max_error: f32,
pub numerical_mean_error: f32,
pub fidelity_satisfied: bool,
}Expand description
Structured lab experiment receipt recording operator conversion, execution, and fidelity.
Fields§
§experiment_id: String§operator_digest: u64§source_digest: u64§fidelity_contract: FidelityContract§transfer_bandwidth_gbps: Option<f64>Host-to-device upload bandwidth in GB/s. None if unmeasured.
local_bandwidth_gbps: Option<f64>Sustained device-local memory read bandwidth in GB/s. None if unmeasured.
lut_setup_ns: u64Time in nanoseconds spent building lookup tables or preparing execution.
cold_latency_ns: u64Latency in nanoseconds for cold first-token execution.
warm_latency_ns: u64Latency in nanoseconds for steady-state warm decode.
memory: OperatorMemoryBreakdownMemory accounting across domains.
numerical_max_error: f32Maximum absolute numerical difference compared to scalar oracle.
numerical_mean_error: f32Mean absolute numerical difference compared to scalar oracle.
fidelity_satisfied: boolWhether the declared fidelity contract was satisfied.
Implementations§
§impl OperatorExperimentReceipt
impl OperatorExperimentReceipt
pub fn new(
experiment_id: impl Into<String>,
operator_digest: u64,
source_digest: u64,
fidelity_contract: FidelityContract,
memory: OperatorMemoryBreakdown,
) -> OperatorExperimentReceipt
pub fn new( experiment_id: impl Into<String>, operator_digest: u64, source_digest: u64, fidelity_contract: FidelityContract, memory: OperatorMemoryBreakdown, ) -> OperatorExperimentReceipt
Creates the receipt.
pub fn evaluate_fidelity(&mut self, tolerance: f32)
pub fn evaluate_fidelity(&mut self, tolerance: f32)
Evaluates whether the declared fidelity contract was met under the given tolerance.
Trait Implementations§
§impl Clone for OperatorExperimentReceipt
impl Clone for OperatorExperimentReceipt
§fn clone(&self) -> OperatorExperimentReceipt
fn clone(&self) -> OperatorExperimentReceipt
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 more§impl Debug for OperatorExperimentReceipt
impl Debug for OperatorExperimentReceipt
§impl<'de> Deserialize<'de> for OperatorExperimentReceipt
impl<'de> Deserialize<'de> for OperatorExperimentReceipt
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperatorExperimentReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperatorExperimentReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for OperatorExperimentReceipt
impl PartialEq for OperatorExperimentReceipt
§impl Serialize for OperatorExperimentReceipt
impl Serialize for OperatorExperimentReceipt
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OperatorExperimentReceipt
Auto Trait Implementations§
impl Freeze for OperatorExperimentReceipt
impl RefUnwindSafe for OperatorExperimentReceipt
impl Send for OperatorExperimentReceipt
impl Sync for OperatorExperimentReceipt
impl Unpin for OperatorExperimentReceipt
impl UnsafeUnpin for OperatorExperimentReceipt
impl UnwindSafe for OperatorExperimentReceipt
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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