Skip to main content

Module file

Module file 

Source

Re-exports§

pub use types::FileComposite;
pub use types::FileCompositeNode;
pub use types::FileItem;
pub use types::FileTensor;
pub use types::FileWriterOptions;
pub use types::IndexEntry;
pub use types::KvValue;
pub use types::DEFAULT_MAX_COMPOSITE_DEPTH;
pub use reader::FileReader;
pub use writer::FileWriter;

Modules§

reader
types
writer

Structs§

CompositeWrite
One tensor of a flattened composite, ready to hand to FileWriterCore::tensor.
FileReaderCore
Reads a Hurray file from bytes a driver fetches by range.
FileWriteOp
One item being written: a tensor, the header, or the footer.
FileWriterCore
Writes the Hurray file container into bytes a driver sends onward.

Enums§

FileStep
What the core needs next from its driver.

Functions§

flatten_composite
Validates a composite tree and flattens it into the order its tensors go on disk.