class_docstr: Scaled Dot-Product Attention
class_docstr_tok: ["Scaled","Dot-Product","Attention"]
code: def __init__(self, temperature, attn_dropout=0.1):
      super(ScaledDotProductAttention, self).__init__()
      self.temperature = temperature
      self.dropout = nn.Dropout(attn_dropout)
      self.softmax = nn.Softmax(axis=2)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import ParamAttr
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.initializer import Normal, XavierNormal
  import numpy
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)