code: def get_initial_state(self, embed, tile_times=1):
      assert embed.shape[1] == 300
      state = self.embed_fc(embed)  # N * sDim
      if tile_times != 1:
          state = state.unsqueeze(1)
          trans_state = paddle.transpose(state, perm=[1, 0, 2])
          state = paddle.tile(
              trans_state, repeat_times=[tile_times, 1, 1]
          )
          trans_state = paddle.transpose(state, perm=[1, 0, 2])
          state = paddle.reshape(trans_state, shape=[-1, self.sDim])
      state = state.unsqueeze(0)  # 1 * N * sDim
      return state
  
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 2 for calling the DecoderUnit obj's underlying member method code with example usage: obj.get_initial_state(embed, tile_times) and returns: state