beta)at_npu::native::npu_dropout_gen_mask

定义文件

third_party\op-plugin\op_plugin\include\ops.h

接口原型

at::Tensor npu_dropout_gen_mask(const at::Tensor &self, at::IntArrayRef size, double p, int64_t seed, int64_t offset, c10::optional<bool> parallel, c10::optional<bool> sync)

功能描述

训练过程中,按照概率p随机生成mask,用于元素置零。

参数说明

支持的型号