MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / forward

Method forward

modules/commons/common_layers.py:469–472  ·  view source on GitHub ↗
(ctx, i)

Source from the content-addressed store, hash-verified

467class 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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected