Repository navigation
LEAPP 0.8.2 improves capture, export, and runtime reliability for policy pipelines.
Fixed
- Correct NumPy masked normalization, indexed-assignment broadcasting, and runtime boolean masks used in Torch assignments. Preserve quantile precision across NumPy versions.
- Retain runtime slice bounds even when the capture sample selects the whole tensor. Data-dependent steps replay correctly in TorchScript, while PT2 rejects unsupported steps instead of silently saving an identity slice.
- Preserve runtime element counts for positional and keyword
torch.numelcalls on intermediate tensors, with correct PT2 and TorchScript replay. - Honor requested dtypes in Torch constructors and NumPy’s
ndminoption while preserving copy and alias behavior. Preserve tracing whennp.arrayandnp.asarrayconstruct arrays from nested traced values. - Preserve autocast precision and support dotted input names during capture.
- Fix inference-mode capture of no-op casts such as
.float(), restore module buffers after tracing, and validate inference-mode buffers. Preserve all outputs when functionalizing mixed inference-mode and autocast graphs. - Export ONNX constant
type_asoperations correctly and allow newer ONNXScript versions without an exact version pin. - Load PT2 models and their buffers on the selected runtime device.
- Preserve overlapping updates to plain Torch buffers through supported slices, including nested slices under inference mode.
- Recognize BF16 inputs and outputs in static-shape CUDA ONNX Runtime I/O bindings. Execution still requires provider support for the graph’s BF16 operators.
Changed / Docs
- Clarify that autocast combined with runtime tensor slice bounds requires PyTorch 2.10 or newer.