Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Apr 8, 2024
1 parent 743a35a commit c052105
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bnpm/torch_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ def slice_along_dim(
) -> torch.Tensor:
"""
Slices a tensor along a specified dimension.
RH 2022
Args:
X (torch.Tensor):
Expand All @@ -906,8 +907,6 @@ def slice_along_dim(
(torch.Tensor):
sliced_tensor (torch.Tensor):
Sliced tensor.
RH 2022
"""
slices = [slice(None)] * X.ndim
slices[dim] = idx
Expand Down

0 comments on commit c052105

Please sign in to comment.