elvin-n commented on code in PR #12537: URL: https://github.com/apache/tvm/pull/12537#discussion_r953584379
########## python/tvm/topi/adreno/conv2d_nchw.py: ########## @@ -33,48 +33,22 @@ ) [email protected]_topi_compute("conv2d_nchwc.image2d") -def conv2d_nchwc(cfg, data, kernel, strides, padding, dilation, out_dtype="float16"): - """Compute conv2d with NCHWc layout""" - args = {"shared": False, "accumulator": "float16"} - return compute_conv2d_NCHWc_KCRSk( - data, kernel, strides, padding, dilation, out_dtype, args=args - ) - - [email protected]_topi_compute("conv2d_nchwc_acc32.image2d") -def conv2d_nchwc_acc32(cfg, data, kernel, strides, padding, dilation, out_dtype="float16"): - """Compute conv2d with NCHWc layout""" - args = {"shared": False, "accumulator": "float32"} - return compute_conv2d_NCHWc_KCRSk( - data, kernel, strides, padding, dilation, out_dtype, args=args - ) - - @autotvm.register_topi_schedule("conv2d_nchwc.image2d") def schedule_conv2d_nchwc(cfg, outs): - return schedule_conv2d_nchwc_impl(cfg, outs, tag="cast_from_acc16") - - [email protected]_topi_schedule("conv2d_nchwc_acc32.image2d") -def schedule_conv2d_nchwc_acc32(cfg, outs): - return schedule_conv2d_nchwc_impl(cfg, outs, tag="cast_from_acc32") - - -def schedule_conv2d_nchwc_impl(cfg, outs, tag): """Create the schedule for conv2d_nchw""" outs = [outs] if isinstance(outs, te.tensor.Tensor) else outs s = te.create_schedule([x.op for x in outs]) def _callback(op): - if op.tag == tag: + if op.tag == "dummy_compute_at": Review Comment: changed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
