LeshengJin commented on code in PR #15670:
URL: https://github.com/apache/tvm/pull/15670#discussion_r1318044932
##########
python/tvm/relax/frontend/nn/core.py:
##########
@@ -411,6 +412,10 @@ def jit( # pylint: disable=too-many-arguments
# Compile mod and feed it to VM
mod = relax.pipeline.get_pipeline(pipeline)(mod) # pylint:
disable=no-value-for-parameter
+
+ if device != "cpu":
+ with target, tvm.transform.PassContext(opt_level=3):
+ mod = tvm.tir.transform.DefaultGPUSchedule()(mod)
Review Comment:
Removed the hardcoded part.
--
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]