未验证 提交 2916caa2 编写于 作者: H Huihuang Zheng 提交者: GitHub

Change ugly PADDLE_ENFORCE_EQ in recurrent_op.cc (#19470)

test=develop
上级 9dde5640
......@@ -121,7 +121,7 @@ int64_t RecurrentBase::GetSequenceLength(const framework::Scope &scope) const {
// Dim format SEQ_LEN, BATCH_SIZE, ...
int64_t seq_len = -1;
auto &all_inputs = Inputs(kInputs);
PADDLE_ENFORCE_EQ(!all_inputs.empty(), true);
PADDLE_ENFORCE_EQ(all_inputs.empty(), false);
for (auto &iname : all_inputs) {
auto *var = scope.FindVar(iname);
PADDLE_ENFORCE_NOT_NULL(var);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册