模型开发接口
推理部署接口
API 相关说明
Element-wise x * relu6(x + 3) / 6.
Example
>>> import numpy as np >>> x = Tensor(np.arange(5).astype(np.float32)) >>> out = F.hswish(x) >>> out.numpy().round(decimals=4) array([0. , 0.6667, 1.6667, 3. , 4. ], dtype=float32)
previous
megengine.functional.nn.hsigmoid
next
megengine.functional.nn.relu