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

Method sample

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

Source from the content-addressed store, hash-verified

249 return th.mean(exploration_loss)
250
251 def sample(self) -> th.Tensor:
252 # Reparametrization trick to pass gradients
253 return self.distribution.rsample()
254
255 def mode(self) -> th.Tensor:
256 alpha = self.distribution.concentration1

Callers 1

get_actionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected