From e05fb128bc7045a0bd27f15e34129c7a5b7e6b53 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Tue, 25 Dec 2018 14:30:54 +0800 Subject: [PATCH] fix code style test=develop --- paddle/fluid/operators/top_k_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/top_k_op.cc b/paddle/fluid/operators/top_k_op.cc index e634f7c9a5..c80eaefaae 100644 --- a/paddle/fluid/operators/top_k_op.cc +++ b/paddle/fluid/operators/top_k_op.cc @@ -31,7 +31,7 @@ class TopkOp : public framework::OperatorWithKernel { auto input_dims = ctx->GetInputDim("X"); PADDLE_ENFORCE_EQ(input_dims.size(), 2, - "Rank of TopK op's input must be 2."); + "Rank of TopK op's input must be 2."); const int k = static_cast(ctx->Attrs().Get("k")); PADDLE_ENFORCE_GE(k, 1, "k must >= 1"); -- GitLab