(self, input)
| 12 | class Round(Function): |
| 13 | @staticmethod |
| 14 | def forward(self, input): |
| 15 | sign = torch.sign(input) |
| 16 | output = sign * torch.floor(torch.abs(input) + 0.5) |
| 17 | return output |
| 18 | |
| 19 | @staticmethod |
| 20 | def backward(self, grad_output): |
nothing calls this directly
no outgoing calls
no test coverage detected