TorchLean API

NN.Examples.Interop.PyTorch

PyTorch Interop Examples #

Roundtrip exports MLP, CNN, and transformer models or reads their JSON weights for a Lean forward pass. Companion Python scripts produce the reference weights.

The reusable importers and exporters live under NN.Runtime.PyTorch. Graph-capture regression checks run separately with lake exe pytorch_export_check.