Skip to content

Commit 6571c6f

Browse files
author
me
committed
don't know why but with dynamo=True, using dims (1,3,320,320) broke the export. maybe it assumes with Batch==1 more aggresive fusing can be done in reshape layers. I dunno
1 parent 9faea58 commit 6571c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test_unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_forward(net: YoloBase):
4040
@torch.inference_mode()
4141
def test_export(net: YoloBase):
4242
net = net.eval()
43-
x = torch.randn(1, 3, 320, 320)
43+
x = torch.randn(4, 3, 640, 640)
4444
_ = net(x) # compile einops kernels just in case
4545
torch.onnx.export(net, (x,), dynamo=True, opset_version=23,
4646
input_names=['img'],

0 commit comments

Comments
 (0)