Commit bd2f78fd authored by Scott Zhu's avatar Scott Zhu Committed by TensorFlower Gardener
Browse files

Make contrib.seq2seq more compatible with tf 2.0. (1/6)

1. Add a new loss object which wrap around the existing loss function, which
use can use it keras model.
2. Slightly update the code for readability and reduce duplication.
3. Update the test case to be eager compatible.

PiperOrigin-RevId: 227860442
parent 0bc20afe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment