Export a module's forward pass as an ExportedProgram.
This traces the module's forward() with the given sample inputs and captures the computation graph. Similar to PyTorch's torch.export.export().
Named export_ to avoid conflict with the JavaScript export keyword.
export_
export
The nn.Module to export
Sample input tensors for tracing
An ExportedProgram containing the traced graph
Export a module's forward pass as an ExportedProgram.
This traces the module's forward() with the given sample inputs and captures the computation graph. Similar to PyTorch's torch.export.export().
Named
export_to avoid conflict with the JavaScriptexportkeyword.