Skip to content

Commit

Permalink
Merge pull request showlab#10 from eltociear/main-1
Browse files Browse the repository at this point in the history
Fix typo in basic_utils.py
  • Loading branch information
QinghongLin authored May 8, 2024
2 parents 064abfe + 78caaf1 commit 74c7884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/basic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def update(self, val, n=1):

def dissect_by_lengths(np_array, lengths, dim=0, assert_equal=True):
"""Dissect an array (N, D) into a list a sub-array,
np_array.shape[0] == sum(lengths), Output is a list of nd arrays, singlton dimention is kept"""
np_array.shape[0] == sum(lengths), Output is a list of nd arrays, singlton dimension is kept"""
if assert_equal:
assert len(np_array) == sum(lengths)
length_indices = [0, ]
Expand Down

0 comments on commit 74c7884

Please sign in to comment.