class_docstr: Activation function used in MobileNetV3
class_docstr_tok: ["Activation","function","used","in","MobileNetV3"]
code: def __init__(self, act_func, **kwargs):
      super(Activation, self).__init__(**kwargs)
      if act_func == "relu":
          self.act = nn.Activation("relu")
      elif act_func == "relu6":
          self.act = ReLU6()
      elif act_func == "hard_sigmoid":
          self.act = HardSigmoid()
      elif act_func == "swish":
          self.act = nn.Swish()
      elif act_func == "hard_swish":
          self.act = HardSwish()
      elif act_func == "leaky":
          self.act = nn.LeakyReLU(alpha=0.375)
      else:
          raise NotImplementedError
  
imports: from __future__ import division
  import numpy
  from mxnet.gluon import nn
  from mxnet.gluon.nn import BatchNorm
  from mxnet.gluon.block import HybridBlock
  from mxnet.context import cpu
  from ..nn import ReLU6, HardSigmoid, HardSwish
label_desc: Use image node_id 1 to create a new Activation object from inherited base classes: HybridBlock with example: obj = Activation(act_func)