(ctx, i)
| 467 | class Swish(torch.autograd.Function): |
| 468 | @staticmethod |
| 469 | def forward(ctx, i): |
| 470 | result = i * torch.sigmoid(i) |
| 471 | ctx.save_for_backward(i) |
| 472 | return result |
| 473 | |
| 474 | @staticmethod |
| 475 | def backward(ctx, grad_output): |
nothing calls this directly
no outgoing calls
no test coverage detected