CINN
CINN copied to clipboard
tests(auto-unroll): Improve the detection of Auto-Unroll
用新的测试框架增强auto-unroll测例。
该PR添加了2种cases:
1 ApplyOnMatmulWithUnroll:unroll矩阵乘的reduce轴,并检查block中的auto_unroll_max_step属性。
2 PureSpatial: 如果计算图中的算子类型均是Elementwise或者injective的,则不能进入auto-unroll