class_docstr: General self-attention block/non-local block.
  
  Args:
       in_channels (int): Input channels of key/query feature.
       channels (int): Output channels of key/query transform.
class_docstr_tok: ["General","self-attention","block\/non-local","block",".","Args",":","in_channels","(","int",")",":","Input","channels","of","key\/query","feature",".","channels","(","int",")",":","Output","channels","of","key\/query","transform","."]
code: def forward(self, x):
      context = super(SelfAttentionBlock, self).forward(x, x)
      return self.output_project(context)
  
file_path: PaddleSeg/paddleseg/models/isanet.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.models import layers
  from paddleseg.cvlibs import manager
  from paddleseg.utils import utils
label_desc: Use image node_id 2 for calling the SelfAttentionBlock obj's underlying member method code with example usage: obj.forward(x) and returns: self