TorchLean API

NN.Examples.Interop.PyTorch.Roundtrip

PyTorch Round-Trip Driver #

This module assembles the state-dict round-trip examples.

It does not re-implement model math. Instead it wires together:

Run via the TorchLean example runner:

lake exe torchlean pytorch_roundtrip --model mlp|cnn|transformer --action export|import

Design goals:

CLI model/action selection #

Paths and fixed example dimensions #

Small IO helpers #

Export actions #

Import actions #

Public entrypoint called from the examples runner #