masahi commented on code in PR #13180:
URL: https://github.com/apache/tvm/pull/13180#discussion_r1006252343
##########
tests/python/contrib/test_hexagon/metaschedule_e2e/test_resnet50_int8.py:
##########
@@ -184,3 +187,177 @@ def test_resnet50(hexagon_launcher):
hexagon_lowered.get_graph_json(), hexagon_lowered.lib
)
print(debug_ex.profile(input_name=inp.copy()))
+
+
+def _schedule_packed_8x8x32_conv2d(do_tune: bool):
+ """Manually schedule a conv2d block, created from TE compute op via
CreatePrimFunc,
+ using 8x8x32 packed layout.
+ """
+
+ def schedule_fn(sch, conv2d_block: Optional[BlockRV] = None) -> bool:
+ if conv2d_block == None:
+ try:
+ conv2d_block = sch.get_block("conv2d_NCHWc_int8")
Review Comment:
My PR https://github.com/apache/tvm/pull/13206 has `has_block(sch,
block_name)` utility, which can remove this hack. I'll update this code after
it is merged.
--
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]