From 1f6b90904aaab3dc144f966e63c5041888457ee9 Mon Sep 17 00:00:00 2001 From: Yibing Liu Date: Thu, 21 Sep 2017 11:44:55 +0800 Subject: [PATCH] fix a typo in rank_loss_op --- paddle/operators/rank_loss_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/rank_loss_op.cc b/paddle/operators/rank_loss_op.cc index d98fd54f22..4bba420072 100644 --- a/paddle/operators/rank_loss_op.cc +++ b/paddle/operators/rank_loss_op.cc @@ -39,7 +39,7 @@ class RankLossOp : public framework::OperatorWithKernel { PADDLE_ENFORCE((label_dims == left_dims) && (left_dims == right_dims), "All inputs must have the same size"); PADDLE_ENFORCE((label_dims.size() == 2) && (label_dims[1] == 1), - "All inputs must be row vector with size batch_sizex1."); + "All inputs must be row vector with size batch_size x 1."); ctx.Output("Out")->Resize(label_dims); } }; -- GitLab