Skip to content

Commit a77d1bc

Browse files
committed
Add debug code
1 parent 9e73621 commit a77d1bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/framework/details/fetch_op_handle.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void FetchOpHandle::RunImpl() {
5353
platform::CPUPlace cpu;
5454
auto &scopes = *local_scopes_;
5555

56+
PADDLE_ENFORCE_EQ(inputs_.size(), scopes.size());
5657
for (size_t i = 0; i < scopes.size(); ++i) {
5758
auto &scope = scopes[i];
5859
auto *var =

0 commit comments

Comments
 (0)