class_docstr: Swish - Described in: https://arxiv.org/abs/1710.05941
  Memory efficient variant from:
   https://medium.com/the-artificial-impostor/more-memory-efficient-swish-activation-function-e07c22c12a76
class_docstr_tok: ["Swish","-","Described","in",":","https",":","\/\/arxiv.org\/abs\/1710.05941","Memory","efficient","variant","from",":","https",":","\/\/medium.com\/the-artificial-impostor\/more-memory-efficient-swish-activation-function-e07c22c12a76"]
code: def forward(ctx, x):
      result = x.mul(torch.sigmoid(x))
      ctx.save_for_backward(x)
      return result
  
imports: import torch
  from torch import nn
  from torch.nn import functional
label_desc: Use image node_id 1 for calling the SwishAutoFn obj's underlying member method code with example usage: obj.forward(ctx, x) and returns: result