Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
fix dropout
Browse files Browse the repository at this point in the history
  • Loading branch information
HU-qingqing committed Nov 11, 2022
1 parent 16bcc2e commit 167ecb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/diopi/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ DIOPI_API diopiError_t diopiAdaptiveMaxPool2dBackward(diopiContextHandle_t ctx,
/**
* \brief Randomly zeroes some of the elements of the input tensor with probability p using samples from a Bernoulli distribution.
*/
DIOPI_API diopiError_t diopiDropout(diopiContextHandle_t ctx, diopiTensorHandle_t out, diopiConstTensorHandle_t input, double p, bool train);
DIOPI_API diopiError_t diopiDropoutInp(diopiContextHandle_t ctx, diopiTensorHandle_t input, double p, bool train);
DIOPI_API diopiError_t diopiDropout(diopiContextHandle_t ctx, diopiTensorHandle_t out, diopiTensorHandle_t mask,
diopiConstTensorHandle_t input, double p, bool train);
DIOPI_API diopiError_t diopiDropoutInp(diopiContextHandle_t ctx, diopiTensorHandle_t input, diopiTensorHandle_t mask,
double p, bool train);

/**
* \brief Measures the element-wise mean squared error
Expand Down

0 comments on commit 167ecb8

Please sign in to comment.