Skip to content
Merged
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: 3 additions & 0 deletions tritonbench/utils/triton_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,9 @@ def __post__init__(self):
f"Input IDs to run: {self._input_ids}",
)

def get_backend(self, bm_func_name: str):
return REGISTERED_BENCHMARKS[self.name][bm_func_name]

def _get_bm_func(self, bm_func_name: str):
fwd_fn_lambda = getattr(self, bm_func_name, None)
assert callable(fwd_fn_lambda), (
Expand Down