Add symbolic for SwishJitAutoFn to support onnx

pull/282/head
tigertang 4 years ago committed by GitHub
parent 80cd31f21f
commit 43f2500c26
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 Inspired by conversation btw Jeremy Howard & Adam Pazske
https://twitter.com/jeremyphoward/status/1188251041835315200 https://twitter.com/jeremyphoward/status/1188251041835315200
""" """
@staticmethod
def symbolic(g, x):
return g.op("Mul", x, g.op("Sigmoid", x))
@staticmethod @staticmethod
def forward(ctx, x): def forward(ctx, x):

Loading…
Cancel
Save