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

Method log_prob

roach/models/distributions.py:73–75  ·  view source on GitHub ↗
(self, actions: th.Tensor)

Source from the content-addressed store, hash-verified

71 return self
72
73 def log_prob(self, actions: th.Tensor) -> th.Tensor:
74 log_prob = self.distribution.log_prob(actions)
75 return sum_independent_dims(log_prob)
76
77 def entropy_loss(self) -> th.Tensor:
78 entropy_loss = -1.0 * self.distribution.entropy()

Callers

nothing calls this directly

Calls 2

sum_independent_dimsFunction · 0.85
log_probMethod · 0.45

Tested by

no test coverage detected