I've recently working on some code written in tensorflow 1.0.1 and i want to make it available on tenorflow 2. I am not very familiar with seq2seq. Thank you very much.
(attention_keys,
attention_values,
attention_score_fn,
attention_construct_fn) = tf.contrib.seq2seq.prepare_attention(
attention_states=attention_states,
attention_option="bahdanau",
num_units=self.decoder_hidden_units,
)