cleaned comments on model specific get and load functions

This commit is contained in:
Noah Dormann 2019-11-21 16:50:59 +01:00
parent 03a0d437ef
commit 924ba9aea6
2 changed files with 0 additions and 5 deletions

View file

@ -303,9 +303,7 @@ class PPO(BaseRLModel):
def load_parameters(self, load_dict, opt_params): def load_parameters(self, load_dict, opt_params):
""" """
Load model parameters and optimizer parameters from a dictionary Load model parameters and optimizer parameters from a dictionary
Dictionary should be of shape torch model.state_dict() Dictionary should be of shape torch model.state_dict()
This does not load agent's hyper-parameters. This does not load agent's hyper-parameters.

View file

@ -248,12 +248,9 @@ class TD3(BaseRLModel):
def load_parameters(self, load_dict, opt_params): def load_parameters(self, load_dict, opt_params):
""" """
Load model parameters and optimizer parameters from a dictionary Load model parameters and optimizer parameters from a dictionary
Dictionary should be of shape torch model.state_dict() Dictionary should be of shape torch model.state_dict()
This does not load agent's hyper-parameters. This does not load agent's hyper-parameters.
:param load_dict: (dict) dict of parameters from model.state_dict() :param load_dict: (dict) dict of parameters from model.state_dict()
:param opt_params: (dict of dicts) dict of optimizer state_dicts should be handled in child_class :param opt_params: (dict of dicts) dict of optimizer state_dicts should be handled in child_class
""" """