Skip to content

Commit ffa66eb

Browse files
committed
Fix offset in docs
1 parent 7aab282 commit ffa66eb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cebra/data/multi_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def configure_for(self, model: "cebra.models.Model"):
110110
"""Configure the dataset offset for the provided model.
111111
112112
Call this function before indexing the dataset. This sets the
113-
:py:attr:`cebra_data.Dataset.offset` attribute of the dataset.
113+
:py:attr:`cebra.data.Dataset.offset` attribute of the dataset.
114114
115115
Args:
116116
model: The model to configure the dataset for.

cebra/data/single_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def configure_for(self, model: "cebra.models.Model"):
7676
"""Configure the dataset offset for the provided model.
7777
7878
Call this function before indexing the dataset. This sets the
79-
:py:attr:`cebra_data.Dataset.offset` attribute of the dataset.
79+
:py:attr:`cebra.data.Dataset.offset` attribute of the dataset.
8080
8181
Args:
8282
model: The model to configure the dataset for.

cebra/solver/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,15 @@ def _check_indices(batch_start_idx: int, batch_end_idx: int,
9191

9292

9393
def _add_batched_zero_padding(batched_data: torch.Tensor,
94-
offset: cebra.data.Offset, batch_start_idx: int,
94+
offset: cebra.data.Offset,
95+
batch_start_idx: int,
9596
batch_end_idx: int,
9697
num_samples: int) -> torch.Tensor:
9798
"""Add zero padding to the input data before inference.
9899
99100
Args:
100101
batched_data: Data to apply the inference on.
101-
offset (cebra.data.Offset): _description_
102+
offset: Offset of the model to consider when padding.
102103
batch_start_idx: Index of the first sample in the batch.
103104
batch_end_idx: Index of the first sample in the batch.
104105
num_samples (int): Total number of samples in the data.

0 commit comments

Comments
 (0)