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

Function inverse_log_transform

gsplat/compression_simulation/ops.py:11–12  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

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)))
13
14def fake_quantize(input: Tensor, lower_bd: float, upper_bd: float, bitwidth: int = 8, q_type: str = "round"):
15 q_step = (upper_bd - lower_bd) / (2**bitwidth - 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected