Skip to content
Open
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
3 changes: 2 additions & 1 deletion segment_anything_fast/flash_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def benchmark_torch_function_in_microseconds(f, *args, **kwargs):
t0 = benchmark.Timer(
stmt="f(*args, **kwargs)", globals={"args": args, "kwargs": kwargs, "f": f}
)
except:
except Exception as e:
print(f"Error occured: {e}")
return None
return t0.blocked_autorange().mean * 1e6

Expand Down