torch_npu.contrib.NpuFairseqDropout
API接口
torch_npu.contrib.NpuFairseqDropout(p, module_name=None)
功能描述
在npu设备上使用FairseqDropout。
参数说明
p (float): probability of an element to be zeroed.
module_name (string): the name of the model.
约束说明
不支持动态shape。
父主题:
torch_npu.contrib