Skip to content

Commit 907b29e

Browse files
wrongtest-intellifwrongtest
andauthored
[TOPI] check empty array of x86 injective's iters (#15513)
check empty array of x86 injective's iters Co-authored-by: wrongtest <wrongtest@gmail.com>
1 parent ff47aea commit 907b29e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/tvm/topi/x86/injective.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ inline Schedule schedule_injective_from_existing(Schedule sch, const Tensor& out
5151
auto c = axis[1];
5252
auto fused = detail::Fuse(sch[out], {n, c}); // for nhwc layout, fuse n and h
5353
sch[out].parallel(fused);
54-
} else {
54+
} else if (!axis.empty()) {
5555
sch[out].parallel(axis[0]);
5656
}
5757
return sch;

0 commit comments

Comments
 (0)