Skip to content

Commit 0bb6549

Browse files
committed
Fix docs compilation errors
1 parent 794867b commit 0bb6549

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cebra/data/multi_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import torch
3131

3232
import cebra.data as cebra_data
33-
import cebra.distributions as cebra_distr
33+
import cebra.distributions
3434
from cebra.data.datatypes import Batch
3535
from cebra.data.datatypes import BatchIndex
3636

@@ -130,7 +130,7 @@ class MultiSessionLoader(cebra_data.Loader):
130130

131131
def __post_init__(self):
132132
super().__post_init__()
133-
self.sampler = cebra_distr.MultisessionSampler(self.dataset,
133+
self.sampler = cebra.distributions.MultisessionSampler(self.dataset,
134134
self.time_offset)
135135

136136
def get_indices(self, num_samples: int) -> List[BatchIndex]:
@@ -169,7 +169,7 @@ class DiscreteMultiSessionDataLoader(MultiSessionLoader):
169169
# Overwrite sampler with the discrete implementation
170170
# Generalize MultisessionSampler to avoid doing this?
171171
def __post_init__(self):
172-
self.sampler = cebra_distr.DiscreteMultisessionSampler(self.dataset)
172+
self.sampler = cebra.distributions.DiscreteMultisessionSampler(self.dataset)
173173

174174
@property
175175
def index(self):

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get_years(start_year=2021):
104104

105105
intersphinx_mapping = {
106106
"python": ("https://docs.python.org/3", None),
107-
"torch": ("https://pytorch.org/docs/master/", None),
107+
"torch": ("https://pytorch.org/docs/stable/", None),
108108
"sklearn": ("https://scikit-learn.org/stable", None),
109109
"numpy": ("https://numpy.org/doc/stable/", None),
110110
"matplotlib": ("https://matplotlib.org/stable/", None),

0 commit comments

Comments
 (0)