I am executing a program containing the following lines:
def write_log(callback, name, loss, batch_no):
"""
Write training summary to TensorBoard
"""
summary = tf.Summary()
summary_value = summary.value.add()
summary_value.simple_value = loss
summary_value.tag = name
callback.writer.add_summary(summary, batch_no)
callback.writer.flush()
summary = tf.Summary() is causing the following error
Error: AttributeError: module 'tensorflow' has no attribute 'Summary'
Tensorflow version I am using is 2.3.0. Remaining functions related to 'TensorFlow' are working fine.
How can I fix this?