Runtime Selection #
Dtype, backend, device, and runtime-selection helpers.
Runtime execution strategy: eager evaluation or compiled graph execution.
Instances For
Physical or logical device selected for runtime execution.
Instances For
Parse the usual TorchLean runtime flags and run a Float callback.
Examples should use this instead of calling TorchLean.Module.run directly; that lower-level
dispatcher is what backs this wrapper.
Instances For
Parse the standard TorchLean runtime flags and return the resulting Options.
Non-polymorphic sibling of Runtime.withOptions: examples that always run at Float can still
parse --device, --backend, and --dtype without exposing a polymorphic callback.
Instances For
Backend-contract profile corresponding to the selected runtime options.
Instances For
Plan operations under the runtime-selected backend-contract profile.
Instances For
Print the selected backend capsules for operations.
Instances For
Run an example under the selected runtime and pass through the parsed runtime options.
Use this when an example needs to inspect --backend, --device, or similar flags after TorchLean
has selected the scalar backend.
Instances For
Run an example under the selected runtime and pass through runtime options when the callback does not need an explicit Float-cast function.
Instances For
Run a verification or demo command under the selected runtime dtype.
Banner-printing runtime dispatcher matching the convention used by
lake exe verify -- ... commands.