Skip to main content

Module module

Module module 

Source
Expand description

The Module trait. Module::build() produces one pre-compile ModelProto where functions[0] is the top-level body and functions[1..] are composed sub-Modules (deduped by name()).

Structs§

ModuleCall
Fluent call-site for inlining a sub-Module’s body. Inlining rather than FunctionProto calls so independent branches inside the sub-Module run as soon as their inputs are ready (not blocked on a single CALL barrier).
ModuleOutputs
Named-output handle returned by ModuleCall::build.

Enums§

BuildError
Recording-time errors. Compile-time errors come from the compiler.

Traits§

Module
Unit of composition. Implement name() + body(); framework supplies op() and build(). Body declares inputs via g.input("name") and emits via g.output("name", value) (local) or g.net_out("name", peers, value) (network).