class_docstr: The base Attention mechanism, which is typically a sub-part of the multi-head attention
class_docstr_tok: ["The","base","Attention","mechanism",",","which","is","typically","a","sub-part","of","the","multi-head","attention"]
code: def forward(
      self,
      q: torch.Tensor,
      k: torch.Tensor,
      v: torch.Tensor,
      *args,
      **kwargs,
  ) -> torch.Tensor:
      raise NotImplementedError
  
file_path: xformers/xformers/components/attention/base.py
imports: from abc import ABCMeta, abstractmethod
  from dataclasses import asdict, dataclass
  from typing import Optional, Type, TypeVar
  import torch
  import torch.nn
  from xformers.components.attention import AttentionMask
label_desc: Use image node_id 3 for calling the Attention obj's underlying member method code with example usage: obj.forward(q, k, v) without return types