Skip to main content

write_hybrid_program

Function write_hybrid_program 

Source
pub fn write_hybrid_program(
    machine: &Machine,
    map: &PhysicalMap,
    compaction: &Compaction,
    set: &ColumnSet,
    weights: &mut dyn WeightSource,
    dir: &Path,
) -> Result<EngineProgram>
Expand description

Write the program machine runs on the hybrid engine build over map, a hybrid map (super::physical::PhysicalMap::hybrid: the matrices the machine streams in their image at each channel’s start, the memory compacted by compaction with the streamed tensors’ stream entries after it, the space the engine’s card port reads), for a streaming unit built for set, the image’s tiles read from weights: the files write_engine_program writes, every address the engine reads in the flat space where compaction finds it.