MCPcopy Index your code
hub / github.com/Standard-Intelligence/hertz-dev / _square_plus

Method _square_plus

ioblocks.py:37–38  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

35 self.fc_weight = nn.Linear(c.dim, c.num_components)
36
37 def _square_plus(self, x):
38 return (x + T.sqrt(T.square(x) + 4)) / 2
39
40 def input(self, sampled_latents: T.Tensor) -> T.Tensor:
41 """Pre-sampled latents T.Tensor (B, L, Z) -> float tensor (B, L, D)"""

Callers 1

outputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected