MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / log_transform

Function log_transform

gsplat/compression_simulation/ops.py:8–9  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

6from torch import Tensor, device
7
8def log_transform(x):
9 return torch.sign(x) * torch.log1p(torch.abs(x))
10
11def inverse_log_transform(y):
12 return torch.sign(y) * (torch.expm1(torch.abs(y)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected