'How to arrange tensorboard's graphs horizontally in tensorflow 2.x?

I am using the following code, the drawing is arranged vertically, how to change it to horizontal arrangement?

with self.summary_writer.as_default():
    tf.summary.scalar("loss", self.loss[-1], step=self.steps)
    tf.summary.scalar("reward", self.rewards[-1], step=self.steps)
    tf.summary.scalar("average_rewards", np.nanmean(self.rewards[-1000:]), step=self.steps)

I didn't find it in the homepage of tensorflow.

https://www.tensorflow.org/api_docs/python/tf/summary/scalar

picture



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source