Skip to content

Commit 8e5bd4e

Browse files
committed
Fix circular import and abstract method
1 parent 165d641 commit 8e5bd4e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cebra/data/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
import numpy.typing as npt
2929
import torch
3030

31+
import cebra
3132
import cebra.data as cebra_data
3233
import cebra.data.masking as cebra_data_masking
3334
import cebra.helper as cebra_helper
3435
import cebra.io as cebra_io
35-
import cebra.models
3636
from cebra.data.datatypes import Batch
3737
from cebra.data.datatypes import BatchIndex
3838
from cebra.data.datatypes import Offset

cebra/solver/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ def num_parameters(self) -> int:
393393
"""Total number of parameters in the encoder and criterion."""
394394
return sum(p.numel() for p in self.parameters())
395395

396-
@abc.abstractmethod
397396
def parameters(self, session_id: Optional[int] = None):
398397
"""Iterate over all parameters of the model.
399398

0 commit comments

Comments
 (0)