asset-tagging/example.onnx
2025-09-08 14:12:35 -04:00

10 lines
221 B (Stored with Git LFS)
Plaintext

# generate with torch
python - <<'EOF'
import torch, torch.nn as nn
import torch.onnx
model = nn.Linear(3, 1)
x = torch.randn(1, 3)
torch.onnx.export(model, x, "model.onnx", input_names=["in"], output_names=["out"])
EOF