Skip to content

Commit

Permalink
make injective ops's opt schedule applied to every output tensor (#11820
Browse files Browse the repository at this point in the history
)
  • Loading branch information
crazydemo authored Jun 27, 2022
1 parent 6d6e070 commit 1115fd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/tvm/topi/x86/injective.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ def schedule_injective(outs):
The computation schedule for the op.
"""
outs = [outs] if isinstance(outs, te.tensor.Tensor) else outs
x = outs[0]
s = te.create_schedule([x.op for x in outs])
te.schedule.AutoInlineInjective(s)

if not is_empty_shape(x.shape):
schedule_injective_from_existing(s, x)
for x in outs:
if not is_empty_shape(x.shape):
schedule_injective_from_existing(s, x)
return s


Expand Down

0 comments on commit 1115fd9

Please sign in to comment.