Runtime Selection #
Arithmetic semantics, device, and backend-contract inspection.
map batchShape input f applies a reference-valued operation to each sample without fixing
the batch rank. linear (batchShape := ...) applies an affine map to the final feature axis.
Arithmetic semantics and device for a run. The record is defined with the
Torch runtime; this is the name the public API uses, so user code never spells
Runtime.Autograd.Torch to configure a run.
Instances For
A shape-indexed handle to a value owned by a runtime program.
Unlike Tensor, a ValueRef does not contain tensor elements. It names an intermediate value in
an eager session or typed graph and is valid only in the program that created it.
Instances For
Apply an affine map to the final axis, independently over every index in batchShape.
Instances For
Operation-Polymorphic Programs #
These operations build or execute runtime programs. They consume shape-indexed references rather
than materialized Tensor values, so they live under Runtime instead of the pure tensor API.
Ordinary models should use nn and Trainer; this lower-level surface is useful for custom losses,
verification programs, and graph-lowering tools.
Plan operations under the runtime-selected backend-contract profile; inference planning
passes gradEnabled := false.