code: def zero_nil_slot(t):
      """
      Overwrites the nil_slot (first row) of the input Tensor with zeros.
  
      The nil_slot is a dummy slot and should not be trained and influence
      the training algorithm.
      """
      t = tf.convert_to_tensor(t, name="t")
      s = tf.shape(t)[1]
      z = tf.zeros(tf.stack([1, s]))
      return tf.concat(
          axis=0, values=[z, tf.slice(t, [1, 0], [-1, -1])]
      )
  
file_path: nlp-architect/examples/memn2n_dialogue/memn2n_dialogue.py
imports: from __future__ import absolute_import
  from __future__ import division
  import tensorflow
  from six.moves import range
label_desc: Use image node_id 1 for calling a global function with example usage: zero_nil_slot(t) and returns: tf