torch_model = ImageClassifierModel() # Create example inputs for exporting the model. The inputs should be a tuple of tensors. example_inputs = (torch.randn(1, 1, 32, 32),) onnx_program = torch.onnx.export(torch_model, example_inputs, dynamo=True)