TensorflowProjects icon indicating copy to clipboard operation
TensorflowProjects copied to clipboard

AttributeError: 'module' object has no attribute 'histogram_summary'

Open hiteshvaidya opened this issue 8 years ago • 2 comments

This error is while running MagnitudeBased.py (https://github.com/shekkizh/TensorflowProjects/blob/master/Model_Pruning/MagnitudeBased.py)

Following is the screenshot of the error: image The syntax tf.histogram_summary is used in TensorflowUtils.py which is a dependency for MagnitudeBased.py I tried upgrading tensorflow but it didn't solve the issue. Can you please help me to solve this error?

hiteshvaidya avatar Feb 19 '17 17:02 hiteshvaidya

Dude you seriously need to update your code. A lot of changes have happened in tensorflow. Its difficult to replace the old syntax with new one. But thanks for writing this code. I can't complain over free stuff, so just suggesting improvements.

hiteshvaidya avatar Feb 19 '17 18:02 hiteshvaidya

Hi @hiteshvaidya, I wrote these code for experimenting with different ideas when tensorflow was fairly young. I'm aware of changes in tensorflow but haven't really got around to updating all my previous code. I would be happy to review and merge pull requests of code updates for compatibility with newer version of tensorflow. Sorry for the troubles 😄

shekkizh avatar Feb 20 '17 07:02 shekkizh