class_docstr: Disentangled Non-Local Blocks.
  
  Args:
      temperature (float): Temperature to adjust attention.
class_docstr_tok: ["Disentangled","Non-Local","Blocks",".","Args",":","temperature","(","float",")",":","Temperature","to","adjust","attention","."]
code: def embedded_gaussian(self, theta_x, phi_x):
      pairwise_weight = paddle.matmul(theta_x, phi_x)
      if self.use_scale:
          pairwise_weight /= theta_x.shape[-1] ** 0.5
      pairwise_weight /= self.temperature
      pairwise_weight = F.softmax(pairwise_weight, -1)
      return pairwise_weight
  
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 DisentangledNonLocal2D obj's underlying member method code with example usage: obj.embedded_gaussian(theta_x, phi_x) and returns: pairwise_weight