Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions timm/models/layers/activations_me.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down