昇腾社区首页
中文
注册

(beta)torch_npu.npu_silu

须知:[object Object] 该接口计划废弃,可以使用torch.nn.functional.silu接口进行替换。

函数原型

[object Object]

功能说明

计算self的Swish。

参数说明

self (Tensor) - 数据类型:float16、float32。

支持的型号

  • [object Object]Atlas 训练系列产品[object Object]
  • [object Object]Atlas A2 训练系列产品[object Object]
  • [object Object]Atlas A3 训练系列产品[object Object]
  • [object Object]Atlas 推理系列产品[object Object]

调用示例

[object Object]