MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / reset_noise

Method reset_noise

roach/models/ppo_policy.py:62–64  ·  view source on GitHub ↗
(self, n_envs: int = 1)

Source from the content-addressed store, hash-verified

60 self._build()
61
62 def reset_noise(self, n_envs: int = 1) -> None:
63 assert self.use_sde, 'reset_noise() is only available when using gSDE'
64 self.action_dist.sample_weights(self.dist_sigma, batch_size=n_envs)
65
66 def _build(self) -> None:
67 last_layer_dim_pi = self.features_extractor.features_dim

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected