Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Costa Huang committed May 23, 2022
1 parent 1795f39 commit 7a49df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rl_games/common/a2c_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def get_action_values(self, obs):
return res_dict

def get_values(self, obs):
print(f"self.local_rank = {self.local_rank}, obs.sum() = {obs['obs'].sum()}")
with torch.no_grad():
if self.has_central_value:
states = obs['states']
Expand Down
3 changes: 2 additions & 1 deletion rl_games/torch_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def load_config(self, params):
self.exp_config = None

if self.seed:


print(f"====================================, self.rank = {self.rank}, self.seed = {self.seed}")
torch.manual_seed(self.seed)
torch.cuda.manual_seed_all(self.seed)
np.random.seed(self.seed)
Expand Down

0 comments on commit 7a49df2

Please sign in to comment.