Skip to content

Commit

Permalink
Merge pull request DeNA#280 from YuriCat/fix/remove_hidden_output_fro…
Browse files Browse the repository at this point in the history
…m_random_model2

fix: remove hidden output from random model
  • Loading branch information
ikki407 authored Feb 25, 2022
2 parents 627def8 + 00ec537 commit d131669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handyrl/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, model, x):
wrapped_model = ModelWrapper(model)
hidden = wrapped_model.init_hidden()
outputs = wrapped_model.inference(x, hidden)
self.output_dict = {key: np.zeros_like(value) for key, value in outputs.items()}
self.output_dict = {key: np.zeros_like(value) for key, value in outputs.items() if key != 'hidden'}

def inference(self, *args):
return self.output_dict

0 comments on commit d131669

Please sign in to comment.