torch_npu.contrib.Swish

torch_npu.contrib.Swish()

应用基于NPU的Sigmoid线性单元(SiLU)函数,按元素方向。SiLU函数也称为swish函数。