MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / activate_mean

Method activate_mean

model/mixture_model_utils.py:20–24  ·  view source on GitHub ↗
(self, means, mean_activation='tanh')

Source from the content-addressed store, hash-verified

18 self.perform_sampling = True
19
20 def activate_mean(self, means, mean_activation='tanh'):
21 if mean_activation == 'tanh':
22 return torch.tanh(means) * (1.0 - eps) # (-1, 1)
23 else:
24 raise ValueError(f"Unknown activation function: {self.mean_activation}")
25
26 def expand_params(self, logits, means, log_scales, mean_activation='tanh'):
27 """

Callers 1

expand_paramsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected