add norm_op for ssd(cross channel norm)

cross_channel_norm
sweetsky0901 7 years ago
parent b1025cf50a
commit d8b13dee5e

@ -68,6 +68,9 @@ class NormOp : public framework::OperatorWithKernel {
PADDLE_ENFORCE(ctx->HasInput("X"),
"Input(X) of NormOp"
"should not be null.");
PADDLE_ENFORCE(ctx->HasInput("Scale"),
"Input(Scale) of NormOp"
"should not be null.");
PADDLE_ENFORCE(ctx->HasOutput("Out"),
"Output(Out) of NormOp should not be null.");
auto in_x_dims = ctx->GetInputDim("X");

Loading…
Cancel
Save