parameters: (x)
return_statement: return _elwise(x, mode=Elemwise.Mode.H_SWISH)
docstring: r"""Element-wise `x * relu6(x + 3) / 6`.
  
      Example:
  
          .. testcode::
  
              import numpy as np
              from megengine import tensor
              import megengine.functional as F
  
              x = tensor(np.arange(5).astype(np.float32))
              out = F.hswish(x)
              print(out.numpy().round(decimals=4))
  
          .. testoutput::
  
              [0.     0.6667 1.6667 3.     4.    ]
docstring_summary: r"""Element-wise `x * relu6(x + 3) / 6`.
docstring_tokens: r Element - wise x * relu6 ( x + 3 ) / 6 .
function: def hswish(x):
      r"""Element-wise `x * relu6(x + 3) / 6`.
  
      Example:
  
          .. testcode::
  
              import numpy as np
              from megengine import tensor
              import megengine.functional as F
  
              x = tensor(np.arange(5).astype(np.float32))
              out = F.hswish(x)
              print(out.numpy().round(decimals=4))
  
          .. testoutput::
  
              [0.     0.6667 1.6667 3.     4.    ]
  
      """
      return _elwise(x, mode=Elemwise.Mode.H_SWISH)
function_tokens: def hswish ( x ) : return _elwise ( x , mode = Elemwise . Mode . H_SWISH )