Skip to content

Commit 9acaaa1

Browse files
committed
add export_onnx to spherinator.models
1 parent 1e77fcb commit 9acaaa1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/spherinator/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .convolutional_encoder_2d import ConvolutionalEncoder2D
1414
from .dense_model import DenseModel
1515
from .embedding_reconstruction import EmbeddingReconstruction
16+
from .export_onnx import export_onnx
1617
from .variational_autoencoder import VariationalAutoencoder
1718
from .weights_provider import WeightsProvider
1819
from .yaml2model import yaml2model
@@ -29,6 +30,7 @@
2930
"ConvolutionalEncoder2D",
3031
"DenseModel",
3132
"EmbeddingReconstruction",
33+
"export_onnx",
3234
"VariationalAutoencoder",
3335
"WeightsProvider",
3436
"yaml2model",

src/spherinator/models/export_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import torch
44

5-
from spherinator.models import yaml2model
5+
from .yaml2model import yaml2model
66

77

88
def export_onnx(

0 commit comments

Comments
 (0)