Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
christophmluscher committed Jan 17, 2025
1 parent 88b7322 commit 9211382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i6_models/parts/samplers/log_uniform.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def sample(self, num_samples: int) -> torch.Tensor:
Returns a random tensor in the size of [num_samples].
:param num_samples: number of samples.
:return:
:return: [num_samples]
"""
return self._cat_sampler.sample(torch.Size([num_samples]))

Expand All @@ -46,6 +46,6 @@ def log_prob(self, indices: torch.Tensor) -> torch.Tensor:
Return log-probability of the given indices in the size of [B x T]
:param indices: the ground truth target labels as indices.
:return:
:return: [B x T]
"""
return self._cat_sampler.log_prob(indices)

0 comments on commit 9211382

Please sign in to comment.