I'm following along with the GAIL example, and am trying to log to tensorboard. If I understand the API correctly, I should be able to log directly to tensorboard with the init_tensorboard and init_tensorboard_graph arguments (not entirely sure on the distinction, but have tried using both independently and together).
On training, it creates a *.tfevents.* file in the expected directory, but the file stays empty (i.e. 88 bytes in size) for the duration of the run, and nothing is logged to it. This is the how the GAIL is constructed:
Bug description
I'm following along with the GAIL example, and am trying to log to tensorboard. If I understand the API correctly, I should be able to log directly to tensorboard with the
init_tensorboard
andinit_tensorboard_graph
arguments (not entirely sure on the distinction, but have tried using both independently and together). On training, it creates a*.tfevents.*
file in the expected directory, but the file stays empty (i.e. 88 bytes in size) for the duration of the run, and nothing is logged to it. This is the how the GAIL is constructed:If I use a custom logger, it works fine, so that's what I'm using for now.
Steps to reproduce
Follow the tutorial, and set the
init_tensorboard
andinit_tensorboard_graph
arguments true: https://imitation.readthedocs.io/en/latest/algorithms/gail.htmlEnvironment
pip freeze --all
: