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. (apache#5700)
  • Loading branch information
notoraptor authored and Trevor Morris committed Jun 18, 2020
1 parent f307279 commit 2b5ea04
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 2b5ea04

Please sign in to comment.