Hi, I run into the issue when dealing with function like this:
fn (%x: Tensor[(64, 64), int8], %w: Tensor[(64), int8], %b: Tensor[(64), int8], %y: Tensor[(64, 64), int8]) {
%0 = qnn.layer_norm(%x, %w, %b, epsilon=1.52588e-05f, ln_shift=7, affine_shift=8);
nn.dense(%0, %y, units=64, out_dtype="int8")
}
error msg:
Check failed: (!anchor_op_.defined() || anchor_op_pattern_ < kCommReduce) is false: Cannot apply TOPI schedule to a primitive function with two complicated ops anchor=Op(qnn.layer_norm) current=Op(nn.dense)
qnn.layer_norm and nn.dense both have their own schedule strategy registered for a 3rd target, just using relay.build rather than AutoTVM, and just want to use their own schedules corresponding to each of OPs rather than fuse them. Could this be achieved?
Could anyone help and what should I do for next step? Thanks very much.