Skip to content

Commit

Permalink
fixing get_mean_std_with_masks (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengyiLuo authored Nov 18, 2024
1 parent 90af59b commit 42c076e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rl_games/algos_torch/running_mean_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _update_mean_var_count_from_moments(self, mean, var, count, batch_mean, batc
def forward(self, input, denorm=False, mask=None):
if self.training:
if mask is not None:
mean, var = torch_ext.get_mean_std_with_masks(input, mask)
mean, var = torch_ext.get_mean_var_with_masks(input, mask)
else:
mean = input.mean(self.axis) # along channel axis
var = input.var(self.axis)
Expand Down

0 comments on commit 42c076e

Please sign in to comment.