!1412 change 1 - keep_prob to keep_prob

Merge pull request !1412 from SanjayChan/master
pull/1412/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 948d07edcd

@ -20,7 +20,7 @@
__global__ void DropoutForwardKernel(const float *input, float *mask, float *output, size_t num_count,
float drop_prob) {
float scale = 1.f / (1.f - drop_prob);
float scale = 1.f / drop_prob;
for (size_t i = blockIdx.x * blockDim.x + threadIdx.x; i < num_count; i += blockDim.x * gridDim.x) {
mask[i] = mask[i] > drop_prob;
output[i] = scale * input[i] * mask[i];

Loading…
Cancel
Save