pub enum ImageProgramValueSpecV1 {
Utf8 {
maximum_bytes: u64,
},
Rgb8 {
width: u32,
height: u32,
},
Rgba8 {
width: u32,
height: u32,
},
Png {
width: u32,
height: u32,
color: ImagePngColorV1,
encoding: Digest,
maximum_bytes: u64,
},
Gray8 {
width: u32,
height: u32,
},
Tensor {
tensor: TensorSpec,
representation: Digest,
},
Checkpoint {
compatibility: Digest,
maximum_bytes: u64,
},
Opaque {
opaque_kind: ImageOpaqueValueKindV1,
compatibility: Digest,
maximum_bytes: u64,
},
}Expand description
Exact logical representation of one resident program value.
Variants§
Utf8
Valid UTF-8 bytes with a public maximum length.
Rgb8
Tightly packed interleaved RGB bytes.
Rgba8
Tightly packed interleaved RGBA bytes.
Png
Lossless PNG bytes with exact decoded geometry and encoder identity.
Fields
§
color: ImagePngColorV1Decoded sample representation.
Gray8
Tightly packed single-channel bytes.
Tensor
Exact typed tensor bytes under one representation identity.
Fields
§
tensor: TensorSpecTensor shape, scalar type, layout, and placement contract.
Checkpoint
Authenticated serialized checkpoint envelope.
Fields
Opaque
Backend-native bytes or state unavailable to public interpretation.
Implementations§
Trait Implementations§
Source§impl Clone for ImageProgramValueSpecV1
impl Clone for ImageProgramValueSpecV1
Source§impl Debug for ImageProgramValueSpecV1
impl Debug for ImageProgramValueSpecV1
Source§impl<'de> Deserialize<'de> for ImageProgramValueSpecV1
impl<'de> Deserialize<'de> for ImageProgramValueSpecV1
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 ImageProgramValueSpecV1
Source§impl PartialEq for ImageProgramValueSpecV1
impl PartialEq for ImageProgramValueSpecV1
Source§impl Serialize for ImageProgramValueSpecV1
impl Serialize for ImageProgramValueSpecV1
impl StructuralPartialEq for ImageProgramValueSpecV1
Auto Trait Implementations§
impl Freeze for ImageProgramValueSpecV1
impl RefUnwindSafe for ImageProgramValueSpecV1
impl Send for ImageProgramValueSpecV1
impl Sync for ImageProgramValueSpecV1
impl Unpin for ImageProgramValueSpecV1
impl UnsafeUnpin for ImageProgramValueSpecV1
impl UnwindSafe for ImageProgramValueSpecV1
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