Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,7 @@ def _store_extra_arg(

@nvtx_range("ad_get_unique_value")
def _get_unique_value(self, occupied: Set[int], max_val: int) -> int:
"""Get un unoccupied value from the range indicated by max_val.

In addition, this function performs a sanity check to ensure that no value in the occupied
set is out of bounds.
"""
# Validate without materializing the full range set
out_of_range = [v for v in occupied if v < 0 or v >= max_val]
assert not out_of_range, f"Out of range values: {out_of_range}"

"""Get un unoccupied value from the range indicated by max_val."""
# Return the smallest free value; fall back to 0 if none
for candidate in range(max_val):
if candidate not in occupied:
Expand Down
235 changes: 0 additions & 235 deletions tensorrt_llm/_torch/auto_deploy/custom_ops/multi_stream.py

This file was deleted.

Loading