Skip to content

Commit cf3d15d

Browse files
committed
use updated torch.onnx.export method
1 parent effb170 commit cf3d15d

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

tests/test_dynamo_export.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

tests/test_onnx_export.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
import torch.nn.functional as F
77
from power_spherical import PowerSpherical
88

9-
from spherinator.models import (
10-
Autoencoder,
11-
ConvolutionalDecoder1D,
12-
ConvolutionalEncoder1D,
13-
)
9+
from spherinator.models import Autoencoder, ConvolutionalDecoder1D, ConvolutionalEncoder1D
1410

1511

1612
class Model1(nn.Module):
@@ -78,4 +74,4 @@ def forward(self, x):
7874
def test_onnx_dynamo_export(module, input):
7975
module.eval()
8076
module(input)
81-
torch.onnx.dynamo_export(module, input)
77+
torch.onnx.export(module, (input,), dynamo=True)

0 commit comments

Comments
 (0)