Skip to content

v0.8.2

Latest

Choose a tag to compare

@frlai frlai released this 02 Dec 08:06
38f4125

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.numel calls on intermediate tensors, with correct PT2 and TorchScript replay.
  • Honor requested dtypes in Torch constructors and NumPy’s ndmin option while preserving copy and alias behavior. Preserve tracing when np.array and np.asarray construct 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_as operations 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.