You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not an expert in using TF agents, I've started to learn how to use this library quite recently, so I don't know if I'm just ignoring some implementation detail.
I noticed that the save() method of the utils.common.Checkpointer class asks for the global_step as a positional argument.
The global_step argument is then passed to the save function of the _manager object.
The piece of code I'm referring at is:
Given that the CheckpoinManager.save() function accepts also None for the checkpoint_number kwarg, don't you think should be more correct to implement the save function as follows?
Hi, I'm not an expert in using TF agents, I've started to learn how to use this library quite recently, so I don't know if I'm just ignoring some implementation detail.
I noticed that the
save()
method of theutils.common.Checkpointer
class asks for theglobal_step
as a positional argument.The
global_step
argument is then passed to thesave
function of the_manager
object.The piece of code I'm referring at is:
Given that the
CheckpoinManager.save()
function accepts alsoNone
for thecheckpoint_number
kwarg, don't you think should be more correct to implement the save function as follows?Thanks to this change the user would have the possibility to also use directly the
checkpoint.save_counter
mantained by theCheckpointManager
class.Am I missing some reason why it's mandatory to specify a global_step instead of giving the possibility to use the default
CheckpointManager
counter?In case there is a positive feadback for this change I can also submit a pull request :)
Thanks for your help in advance!
The text was updated successfully, but these errors were encountered: