Merge pull request #282 from tigert1998/patch-1

Add symbolic for SwishJitAutoFn to support onnx
pull/413/head^2
Ross Wightman 3 years ago committed by GitHub
commit b9843f954b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,6 +30,9 @@ class SwishJitAutoFn(torch.autograd.Function):
Inspired by conversation btw Jeremy Howard & Adam Pazske
https://twitter.com/jeremyphoward/status/1188251041835315200
"""
@staticmethod
def symbolic(g, x):
return g.op("Mul", x, g.op("Sigmoid", x))
@staticmethod
def forward(ctx, x):

Loading…
Cancel
Save