Program Listing for File dropout.h
↰ Return to documentation for file (include/converter/include/ops/dropout.h
)
#ifndef MINDSPORE_CORE_OPS_DROPOUT_H_
#define MINDSPORE_CORE_OPS_DROPOUT_H_
#include <memory>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameDropout = "Dropout";
class MIND_API Dropout : public BaseOperator {
public:
MIND_API_BASE_MEMBER(Dropout);
Dropout() : BaseOperator(kNameDropout) {}
void Init(const float keep_prob = 0.5);
void set_keep_prob(const float keep_prob);
float get_keep_prob() const;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_DROPOUT_H_