class_docstr: Constructs instances of :class:`CausalAttentionMask`.
class_docstr_tok: ["Constructs","instances","of",":","class",":","`","CausalAttentionMask","`","."]
code: def __repr__(self) -> str:
      if self.attn_window_len is None:
          return "CausalAttentionMaskFactory()"
  
      return f"CausalAttentionMaskFactory(attn_window_len={self.attn_window_len})"
  
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 CausalAttentionMaskFactory obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str, str