We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff47aea commit 907b29eCopy full SHA for 907b29e
1 file changed
include/tvm/topi/x86/injective.h
@@ -51,7 +51,7 @@ inline Schedule schedule_injective_from_existing(Schedule sch, const Tensor& out
51
auto c = axis[1];
52
auto fused = detail::Fuse(sch[out], {n, c}); // for nhwc layout, fuse n and h
53
sch[out].parallel(fused);
54
- } else {
+ } else if (!axis.empty()) {
55
sch[out].parallel(axis[0]);
56
}
57
return sch;
0 commit comments