TensorFlow FileWriter not writing to file

I am training a simple TensorFlow model. The training aspect works fine, but no logs are being written to /tmp/tensorflow_logs and I’m not sure why. Could anyone provide some insight? Thank you Answer A combination of changing the file path from /temp/… to temp/… and adding summary_writer.flush() and summary_writer.close() made the logs be written successfully.