class_docstr: Defines scaled dot product attention layer.
  
  Attributes:
    dropout: Dropout rate to use
    activation: Normalisation function for scaled dot product attention (e.g.
      softmax by default)
class_docstr_tok: ["Defines","scaled","dot","product","attention","layer",".","Attributes",":","dropout",":","Dropout","rate","to","use","activation",":","Normalisation","function","for","scaled","dot","product","attention","(","e.g",".","softmax","by","default",")"]
code: def __init__(self, attn_dropout=0.0):
      self.dropout = Dropout(attn_dropout)
      self.activation = Activation("softmax")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gc
  import json
  import os
  import shutil
  import data_formatters.base
  import libs.utils
  import numpy
  import pandas
  import tensorflow
label_desc: Use image node_id 1 to create a new ScaledDotProductAttention object  with example: obj = ScaledDotProductAttention(attn_dropout)