↓ 1 callersFunctionSoftmaxMaskattr_mask's shape could be (batch, from_len, to_len), (batch, 1, to_len) or nullptr is2D is used to distinguish the two scenarios.
turbo_transformers/layers/kernels/softmax.cpp:28
↓ 1 callersFunctionbenchmark_torch(model_name: str, seq_len: int, batch_size: int, n: int,
enable_random: bool, max_seq_len:
benchmark/torch_benchmark_helper.py:17
↓ 1 callersFunctionbenchmark_torch_jit(model_name: str, seq_len: int, batch_size: int, n: int,
enable_random: bool, max_seq_
benchmark/jit_benchmark_helper.py:21
↓ 1 callersFunctionbenchmark_turbo_transformers(model_name: str, seq_len: int,
batch_size: int, n: int, enable_random: bool,
benchmark/turbo_benchmark_helper.py:17