(ctx, i)
| 380 | class SwishImplementation(torch.autograd.Function): |
| 381 | @staticmethod |
| 382 | def forward(ctx, i): |
| 383 | result = i * torch.sigmoid(i) |
| 384 | ctx.save_for_backward(i) |
| 385 | return result |
| 386 | |
| 387 | @staticmethod |
| 388 | def backward(ctx, grad_output): |
nothing calls this directly
no outgoing calls
no test coverage detected