vx2008
vx2008

Reputation: 117

how to import 'tf.contrib.seq2seq.dynamic_decoder' in tensorflow2.0?

I used 'tf.contrib.seq2seq.dynamic_decoder' in tensorflow1.0 and now I want to use it in tensorflow2.0; but I don't know how to import it in tensorflow2.0

Upvotes: 1

Views: 649

Answers (1)

Prasad
Prasad

Reputation: 6034

In TensorFlow 2.0, seq2seq module has been moved to TensorFlow addons

To install it run:

pip install tensorflow_addons

Here is the migration guide for you to upgrade your code.

Upvotes: 1

Related Questions