Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Panev <[email protected]>
  • Loading branch information
Kh4L committed Jun 28, 2023
1 parent 99e8a33 commit b39b36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/sampler/neighbor_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(
def hook_func_with_nvtx(func_name):
func = getattr(self, func_name)

def hooked_func(**kwargs):
def hooked_func(*args, **kwargs):
nvtx_handle = torch.cuda.nvtx.range_start(
f"[Sampler] {func_name} for {self}")
ret = func(**kwargs)
Expand Down

0 comments on commit b39b36b

Please sign in to comment.