Skip to content

Commit

Permalink
nam.models._base to nam.models.base
Browse files Browse the repository at this point in the history
  • Loading branch information
sdatkinson committed Nov 25, 2024
1 parent 6bec7cd commit cb5eea5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nam/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
NAM's neural networks
"""

from . import _base # noqa F401
from . import base # noqa F401
from . import exportable # noqa F401
from . import losses # noqa F401
from .conv_net import ConvNet # noqa F401
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion nam/models/conv_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .. import __version__
from ..data import wav_to_tensor
from ._activations import get_activation
from ._base import BaseNet
from .base import BaseNet
from ._names import ACTIVATION_NAME, BATCHNORM_NAME, CONV_NAME


Expand Down
2 changes: 1 addition & 1 deletion nam/models/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import torch.nn as nn

from .._version import __version__
from ._base import BaseNet
from .base import BaseNet


class Linear(BaseNet):
Expand Down
2 changes: 1 addition & 1 deletion nam/models/recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import torch
import torch.nn as nn

from ._base import BaseNet
from .base import BaseNet


class _L(nn.LSTM):
Expand Down
2 changes: 1 addition & 1 deletion nam/models/wavenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import torch.nn as nn

from ._activations import get_activation
from ._base import BaseNet
from .base import BaseNet
from ._names import ACTIVATION_NAME, CONV_NAME


Expand Down
4 changes: 2 additions & 2 deletions tests/test_nam/test_models/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
import pytest
import torch

from nam.models import _base
from nam.models import base


class MockBaseNet(_base.BaseNet):
class MockBaseNet(base.BaseNet):
def __init__(self, gain: float, *args, **kwargs):
super().__init__(*args, **kwargs)
self.gain = gain
Expand Down

0 comments on commit cb5eea5

Please sign in to comment.