class_docstr: Scaled Dot-Product Attention Module. This code is adopted from
  https://github.com/jadore801120/attention-is-all-you-need-pytorch.
  
  Args:
      temperature (float): The scale factor for softmax input.
      attn_dropout (float): Dropout layer on attn_output_weights.
code: def __init__(self, temperature, attn_dropout=0.1):
      super().__init__()
      self.temperature = temperature
      self.dropout = nn.Dropout(attn_dropout)
  
imports: import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from mmocr.registry import MODELS
label_desc: Use image node_id 1 to create a new ScaledDotProductAttention object from inherited base classes: nn with example: obj = ScaledDotProductAttention(temperature, attn_dropout)