pub struct PartialExpectation {
pub paradigm: ParadigmKind,
pub discriminator: u32,
pub parity_mode: u8,
pub dataset_hash: [u8; 32],
pub params_hash: [u8; 32],
pub shape_fingerprint: [u32; 4],
pub strict_mode: bool,
}Expand description
Receiving rank’s expectation of what a partial should look like.
Each paradigm builds one from its own (dataset, params, parity_mode,
evaluator config) and passes it to crate::envelope::with_validated_envelope.
Validation is paradigm-agnostic byte compare except for
shape_fingerprint, where the receiver supplies its own values
and the four-slot interpretation is paradigm-specific (instance:
(n_categories, n_area_ranges, n_images, retain_iou); semantic:
(n_classes, 0, n_images, 0); panoptic: (n_categories, 0, n_images, things_stuff_split)).
Fields§
§paradigm: ParadigmKindReceiving evaluator’s paradigm.
discriminator: u32Paradigm-defined sub-kind (instance: KernelKind discriminant;
semantic / panoptic: 0).
parity_mode: u8ParityMode discriminant. Strict and corrected cells differ
by construction so a mismatched mode means the partial cannot
be merged.
dataset_hash: [u8; 32]Receiving rank’s dataset_hash. Partial must match exactly.
params_hash: [u8; 32]Receiving rank’s params_hash. Partial must match exactly.
shape_fingerprint: [u32; 4]Paradigm-specific four-slot fingerprint.
strict_mode: boolWhether the receiving evaluator is in strict mode. Affects the rank-collision check (corrected mode tolerates duplicate ranks; strict refuses).
Trait Implementations§
Source§impl Clone for PartialExpectation
impl Clone for PartialExpectation
Source§fn clone(&self) -> PartialExpectation
fn clone(&self) -> PartialExpectation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PartialExpectation
impl RefUnwindSafe for PartialExpectation
impl Send for PartialExpectation
impl Sync for PartialExpectation
impl Unpin for PartialExpectation
impl UnsafeUnpin for PartialExpectation
impl UnwindSafe for PartialExpectation
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.