pub struct BundleHeader {
pub architecture: String,
pub input_features: usize,
pub num_parameters: usize,
pub quantized: bool,
pub quant_bits: Option<u8>,
}Expand description
Lightweight header decoded before the weights blob. Kept in sync with
the Python converter’s parse_axonml header JSON (must round-trip verbatim).
Fields§
§architecture: StringArchitecture tag (sentinel, lstm_autoencoder, res_net, bert, etc.).
input_features: usizeNumber of input features (for MLPs) or input channels (for CNNs).
num_parameters: usizeTotal parameter count (flat length of the weights vector).
quantized: boolWhether weights are post-quantization (INT8 stored as f32 dequantized).
quant_bits: Option<u8>Quantization bit width when quantized = true.
Trait Implementations§
Source§impl Clone for BundleHeader
impl Clone for BundleHeader
Source§fn clone(&self) -> BundleHeader
fn clone(&self) -> BundleHeader
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 BundleHeader
impl Debug for BundleHeader
Source§impl<'de> Deserialize<'de> for BundleHeader
impl<'de> Deserialize<'de> for BundleHeader
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
Auto Trait Implementations§
impl Freeze for BundleHeader
impl RefUnwindSafe for BundleHeader
impl Send for BundleHeader
impl Sync for BundleHeader
impl Unpin for BundleHeader
impl UnsafeUnpin for BundleHeader
impl UnwindSafe for BundleHeader
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
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<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