Skip to content

Commit 373dac1

Browse files
committed
re-add the accidentally deleted code
1 parent b3a3344 commit 373dac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/scheduler/scheduler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void Graph::Analysis() {
396396
BlockType type = blkInfo->type_;
397397
// if the block belongs to a inter tensor
398398
// and isn't refered on the Python Side
399-
if ((type == BlockType::kInter) &&
399+
if ((type == BlockType::kInter || type == BlockType::kEnd) &&
400400
blkInfo->graph_ref_ >= blk->ref_count()) {
401401
free_blocks_[curIndex].push_back(blk);
402402
}

0 commit comments

Comments
 (0)