Skip to content

Instantly share code, notes, and snippets.

@ChunML
Created April 30, 2019 03:23
Show Gist options
  • Save ChunML/27076e5bbb16b34524ccf1488d90f4b3 to your computer and use it in GitHub Desktop.
Save ChunML/27076e5bbb16b34524ccf1488d90f4b3 to your computer and use it in GitHub Desktop.
look_left_only_mask = tf.constant([[1] * i + [0] * (seq_len - i) for i in range(seq_len)], dtype=tf.float32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment