Skip to content

Commit

Permalink
In memory_plan, check if value is not None, instead of just checking …
Browse files Browse the repository at this point in the history
…value as boolean. (#5700)
  • Loading branch information
notoraptor authored May 29, 2020
1 parent ff10e6c commit 1ae7162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/transform/memory_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def mk_let(self, dynamic_regions):
def _mk_let(bindings, body):
for var, value in reversed(bindings):
assert var
assert value
assert value is not None
assert body
body = expr.Let(var, value, body)
if var in dynamic_regions:
Expand Down

0 comments on commit 1ae7162

Please sign in to comment.