Open breadbread1984 opened 3 years ago
This is similar to previous issues related to Keras (see e.g. https://github.com/tensorflow/addons/issues/1898).
As far as I know the main culprits are the tf.debugging
functions that don't accept Keras tensors. This is apparently by design (see https://github.com/tensorflow/tensorflow/issues/41627). The workaround is probably to wrap these calls under a Lambda
layer when used in a Keras context.
System information
Describe the bug
when building a tf.keras.Model in functional style. the BasicDecoder working in inference mode activates autograph and fails. here is an error FYI
Code to reproduce the issue
running code here reproduces the error at line 117. this code is to refactor tensorflow/nmt with tf.keras APIs.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.