(x)
| 6 | from torch import Tensor, device |
| 7 | |
| 8 | def log_transform(x): |
| 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))) |
nothing calls this directly
no outgoing calls
no test coverage detected