modelzoo.transformers.utils.attention_utils.FixedSparseAttentionBuilder#
- class modelzoo.transformers.utils.attention_utils.FixedSparseAttentionBuilder[source]#
Bases:
modelzoo.transformers.utils.attention_utils.SparseAttentionBuilder
Methods
build_mask
get_pytorch_mask
set_global_attention
set_local_attention
trim_to_autoregressive_format