MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / get_actions

Method get_actions

roach/models/distributions.py:106–109  ·  view source on GitHub ↗
(self, deterministic: bool = False)

Source from the content-addressed store, hash-verified

104 return self.distribution.mean
105
106 def get_actions(self, deterministic: bool = False) -> th.Tensor:
107 if deterministic:
108 return self.mode()
109 return self.sample()
110
111
112class SquashedDiagGaussianDistribution():

Callers

nothing calls this directly

Calls 2

modeMethod · 0.95
sampleMethod · 0.95

Tested by

no test coverage detected