TecoGAN
TecoGAN copied to clipboard
i got AttributeError: module 'tensorflow.python.ops.summary_op_util' has no attribute 'skip_summary'
Traceback (most recent call last):
File "main.py", line 284, in
how can i fix this error?
tensorflow = 1.14 python =3.7.3
I have same problem in ubuntu 18.Then I try debian,it doesnt work as well.
skip_summary
has moved to tensorflow.python.distribute.summary_op_util
since v1.14 while other functionalities remain in tensorflow.python.ops.summary_op_util
. So the fix is not one-liner.
Why don't we stick to 1.13?
I also have this problem. And I just comment these.
you can try rename like this : from tensorflow.python.ops import summary_op_util as tpos from tensorflow.python.distribute import summary_op_util as tpds
How to fix it
Open file lib/ops.py
Add import line
from tensorflow.python.distribute.summary_op_util import skip_summary
and change line 507
if summary_op_util.skip_summary()
to if skip_summary()
You could use my docker setup to avoid issues with incompatible tensorflow versions: https://github.com/tom-doerr/TecoGAN