(self, inputs)
| 356 | self.var = torch.clamp(self.mean_diff / self.n, min=1e-2) |
| 357 | |
| 358 | def normalize(self, inputs): |
| 359 | obs_mean = self.mean.unsqueeze(0).expand_as(inputs) |
| 360 | obs_std = torch.sqrt(self.var).unsqueeze(0).expand_as(inputs) |
| 361 | return torch.clamp((inputs - obs_mean) / obs_std, -5., 5.) |
nothing calls this directly
no outgoing calls
no test coverage detected