Skip to content

Commit

Permalink
fix __len__
Browse files Browse the repository at this point in the history
  • Loading branch information
spsancti committed May 26, 2024
1 parent 99f6f07 commit 57e78c9
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ def _setup_data_source(self) -> int:
else:
return len(self._annotations)

def __len__(self) -> int:
return len(self._addr) if self.use_tensor_backed_storage else len(self._annotations)

@property
def _all_classes(self) -> List[str]:
return self.original_classes
Expand Down

0 comments on commit 57e78c9

Please sign in to comment.