AttributeError: 'Tensor' object has no attribute 'numpy' code example
Example: AttributeError: module 'tensorflow' has no attribute 'eagerly'
Eager execution is enabled by default in version 2.x
You can check that by using:
tf.executing_eagerly()