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

Method get_actions

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

Source from the content-addressed store, hash-verified

273 return x
274
275 def get_actions(self, deterministic: bool = False) -> th.Tensor:
276 if deterministic:
277 return self.mode()
278 return self.sample()

Callers 1

forwardMethod · 0.45

Calls 2

modeMethod · 0.95
sampleMethod · 0.95

Tested by

no test coverage detected