(y)
| 9 | return torch.sign(x) * torch.log1p(torch.abs(x)) |
| 10 | |
| 11 | def inverse_log_transform(y): |
| 12 | return torch.sign(y) * (torch.expm1(torch.abs(y))) |
| 13 | |
| 14 | def 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) |
nothing calls this directly
no outgoing calls
no test coverage detected