Skip to content

Commit

Permalink
fix (apache#9021)
Browse files Browse the repository at this point in the history
  • Loading branch information
icemelon authored and ylc committed Jan 13, 2022
1 parent 9a28816 commit 4dc7318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/tvm/topi/cuda/pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _schedule_non_global(Pool):
def traverse(OP):
"""Internal traverse function"""
# inline all one-to-one-mapping operators except the last stage (output)
if tag.is_broadcast(OP.tag):
if tag.is_injective(OP.tag):
if OP not in s.outputs:
s[OP].compute_inline()
for tensor in OP.input_tensors:
Expand Down
4 changes: 2 additions & 2 deletions python/tvm/topi/x86/pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _schedule(PaddedInput, Pool):
def traverse(OP):
"""Internal traverse function"""
# inline all one-to-one-mapping operators except the last stage (output)
if tag.is_broadcast(OP.tag):
if tag.is_injective(OP.tag):
if OP not in s.outputs:
s[OP].compute_inline()
for tensor in OP.input_tensors:
Expand Down Expand Up @@ -137,7 +137,7 @@ def schedule_adaptive_pool(outs):
def traverse(OP):
"""Internal traverse function"""
# inline all one-to-one-mapping operators except the last stage (output)
if tag.is_broadcast(OP.tag):
if tag.is_injective(OP.tag):
if OP not in s.outputs:
s[OP].compute_inline()
for tensor in OP.input_tensors:
Expand Down

0 comments on commit 4dc7318

Please sign in to comment.