↓ 12 callersFunctioncreate_tensors(
op: Optional[Type[AttentionOpBase]],
device,
dtype,
attn_bias_type,
B,
q_len,
kv
tests/test_mem_eff_attention.py:367
↓ 7 callersFunctioncreate_attn_bias(
bias_type,
batch_size: int,
num_heads: int,
num_heads_groups: int,
q_len: int,
kv_le
xformers/attn_bias_utils.py:30
↓ 4 callersFunctionoverlap_fw_bw(
trigger_fw: Callable[[], T],
trigger_bw: Callable[[], None],
initial_bw_chunks: int = 0,
)
xformers/fwbw_overlap.py:497
↓ 4 callersFunctionpaged_attention_run_inner(
B: int,
MAX_T: int,
num_quant_groups: int,
page_size: int,
op: Type[AttentionFwOpBase],
tests/test_mem_eff_attention.py:2491
↓ 3 callersFunction_test_decoder(
op,
n_heads: int,
kv_heads: Optional[int],
padding: int,
bsz: int,
dtype: str,
d
tests/test_mem_eff_attention.py:1655
↓ 3 callersFunctionassert_flops(
error_msg: str,
*,
match: int = -1,
at_least: int = -1,
at_most: Union[int, float] = mat
tests/test_profiler.py:114
↓ 3 callersFunctionbenchmark_main_helper2(
name: str,
functions,
fw: bool = False,
bw: bool = False,
cuda_graph: bool = True,
*
xformers/benchmarks/utils.py:707