Skip to content

Commit

Permalink
[Paddle Inference] modify a check statement in memory_optimize_pass.cc (
Browse files Browse the repository at this point in the history
PaddlePaddle#59638)

[Paddle Inference] modify a check statement in memory_optimize_pass.cc
  • Loading branch information
zhoutianzi666 authored and SigureMo committed Dec 5, 2023
1 parent 4059ec5 commit 0918f48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void MemoryOptimizePass::CollectLifeCycle(

auto in_shape = node->Var()->GetShape();
for (auto i : in_shape) {
CHECK_GT(i, 0);
CHECK_GE(i, 0);
}
auto var_bytes = std::accumulate(in_shape.begin(),
in_shape.end(),
Expand Down

0 comments on commit 0918f48

Please sign in to comment.