Differentiable rounding function
(x)
| 24 | |
| 25 | |
| 26 | def diff_round(x): |
| 27 | """ Differentiable rounding function |
| 28 | """ |
| 29 | return torch.round(x) + (x - torch.round(x))**3 |
| 30 | |
| 31 | |
| 32 | def quality_to_factor(quality): |
nothing calls this directly
no outgoing calls
no test coverage detected