AttributeError: module 'tensorflow' has no attribute 'div' code example
Example: AttributeError: module 'tensorflow' has no attribute 'nn
I have solved this issue by downgrading the version of Tensorflow.
Earlier I was using Tensorflow version 1.14.0.
I installed Tensorflow version 1.13.2 and It solved my error.