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

Method entropy

roach/models/distributions.py:159–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 return log_prob
158
159 def entropy(self) -> Optional[th.Tensor]:
160 return None
161
162 def sample(self) -> th.Tensor:
163 return th.tanh(self.distribution.rsample())

Callers 2

entropy_lossMethod · 0.80
entropy_lossMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected