class_docstr: Constructs instances of :class:`ALiBiMask`.
class_docstr_tok: ["Constructs","instances","of",":","class",":","`","ALiBiMask","`","."]
code: def __repr__(self) -> str:
      return f"ALiBiMaskFactory(num_attn_heads={self.num_attn_heads})"
  
imports: from abc import ABC, abstractmethod
  from typing import Optional, Protocol, final
  import torch
  from torch import Tensor
  from fairseq2.nn.incremental_state import IncrementalStateBag
  from fairseq2.typing import DataType, Device, finaloverride
label_desc: Use image node_id 3 for calling the ALiBiMaskFactory obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str