shellnet icon indicating copy to clipboard operation
shellnet copied to clipboard

AttributeError: module 'tensorflow' has no attribute 'py_function'

Open Timaces opened this issue 5 years ago • 2 comments

I use the tf=1.9.0,when i run the code train_cls.py,the issue is emenied:AttributeError: module 'tensorflow' has no attribute 'py_function',can you help me?

Timaces avatar Dec 17 '19 03:12 Timaces

please check with tensorflow. Such problem can be easily solved when you search online. For example, you can try replace it with py_func to be compatible with tf 1.9.0.

cszyzhang avatar Dec 17 '19 08:12 cszyzhang

thank you, I solved this problem by replacing py_function with py_func

iris0329 avatar Mar 06 '20 09:03 iris0329