wait for further opt
This commit is contained in:
@ -73,6 +73,9 @@ class PacmanDeepQAgent(PacmanQAgent):
|
||||
else:
|
||||
print("Initializing new model parameters")
|
||||
def save_model(self, filename="para.bin"):
|
||||
if model.kProductionMode:
|
||||
print("in production mode, not saving model")
|
||||
return
|
||||
print(f"Saving model parameters to {filename}")
|
||||
torch.save({
|
||||
'model_state_dict': self.model.state_dict(),
|
||||
|
Reference in New Issue
Block a user