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

Commit

Permalink
as per Haojin2 request, moving to op namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed May 22, 2019
1 parent d1b2354 commit cd4bdb8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/operator/nn/dropout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@
#include "../operator_common.h"
#include "mxnet/op_attr_types.h"

namespace {

using namespace mxnet;
using namespace mxnet::op;

namespace mxnet {
namespace op {

OpStatePtr CreateDropoutState(const nnvm::NodeAttrs &attrs,
const Context ctx,
const mxnet::ShapeVector &in_shapes,
Expand All @@ -50,12 +51,6 @@ OpStatePtr CreateDropoutState(const nnvm::NodeAttrs &attrs,
return OpStatePtr(); // should never reach here
}

} // anonymous namespace


namespace mxnet {
namespace op {

struct DropoutGrad {
const char *op_name;
std::vector<nnvm::NodeEntry> operator()(const nnvm::NodePtr& n,
Expand Down

0 comments on commit cd4bdb8

Please sign in to comment.