torch_model = [ImageClassifierModel](https://docs.pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module "torch.nn.Module")() # Create example inputs for exporting the model. The inputs should be a tuple of tensors. example_inputs = ([torch.randn](https://docs.pytorch.org/docs/stable/generated/torch.randn.html#torch.randn "torch.randn")(1, 1, 32, 32),) [onnx_program](https://docs.pytorch.org/docs/stable/onnx_export.html#torch.onnx.ONNXProgram "torch.onnx.ONNXProgram") = [torch.onnx.export](https://docs.pytorch.org/docs/stable/onnx_export.html#torch.onnx.export "torch.onnx.export")(torch_model, example_inputs, dynamo=True)