code: def __init__(self, sDim, xDim, attDim):
      super(AttentionUnit, self).__init__()
  
      self.sDim = sDim
      self.xDim = xDim
      self.attDim = attDim
  
      self.sEmbed = nn.Linear(sDim, attDim)
      self.xEmbed = nn.Linear(xDim, attDim)
      self.wEmbed = nn.Linear(attDim, 1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import paddle
  from paddle import nn
  from paddle.nn import functional
label_desc: Use image node_id 1 to create a new AttentionUnit object from inherited base classes: nn with example: obj = AttentionUnit(sDim, xDim, attDim)