Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/TCP
/ sample
Method
sample
roach/models/distributions.py:162–163 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
160
return
None
161
162
def
sample(self) -> th.Tensor:
163
return
th.tanh(self.distribution.rsample())
164
165
def
mode(self) -> th.Tensor:
166
return
th.tanh(self.distribution.mean)
Callers
1
get_actions
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected