Open ZhaiFeiyue opened 3 years ago
Hi @ZhaiFeiyue -
This code was written with eager mode in mind - a significant number of changes may need to happen if you want to use it in this way. Looking at the documentation of https://www.tensorflow.org/api_docs/python/tf/compat/v1/experimental/output_all_intermediates , it says if setting tf.compat.v1.experimental.output_all_intermediates(True) does not fix the error, please file an issue at https://github.com/tensorflow/tensorflow/issues - please try that and escalate if it does not work.
@markomernick thanks very much
after try, tf.compat.v1.experimental.output_all_intermediates(True)
does not work for me. The errors are same with before.
Hi, did you fix this problem? I'm encountering the same issue.
@RuochenZhao it hard to porting the code from eager mode to graph mode, i'm not using eager model + tf.function
hi ALL, I'm new to tf2.x, and following the tutorials https://github.com/tensorflow/text/blob/a2feab1cb3f30dedaf57797faf74eaebed30f405/docs/tutorials/classify_text_with_bert.ipynb to run bert in graph mode, but got errors after I add
tf.compat.v1.disable_eager_execution()
and remove code relevant to eager mode.my tensorflow version is 2.5.1 the errors are
anyone could help?