oa::WeightSource
Immutable named-weight source. Implementations may mmap one file, aggregate a sharded manifest, or expose another model container. Returned byte spans remain valid while the source remains alive.
Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Parameters
inNameoa::StringView—
Returns
oa::Result<oa::Span<const oa::U8>>The declared return value.
No public source comment is attached to this declaration.
Parameters
inNameoa::StringView—
Returns
const WeightInfo *The declared return value.
No public source comment is attached to this declaration.
Returns
WeightFormatThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::Vector<WeightInfo>The declared return value.
No public source comment is attached to this declaration.
Returns
oa::HashMap<oa::String, oa::String>The declared return value.
No public source comment is attached to this declaration.
Returns
const oa::Path &The declared return value.
Checked copy with optional scalar conversion. Shape transforms belong to a weight mapping, never to the source backend.
Parameters
inNameoa::StringView—
outDataoa::Span<oa::U8>—
inTargetDtypeoa::ScalarType—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Parameters
inEngineoa::Engine &—
inNameoa::StringView—
outMatrixoa::Matrix &—
inTargetDtypeoa::ScalarType—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::U64The declared return value.