Sunny-Island commented on PR #12144:
URL: https://github.com/apache/tvm/pull/12144#issuecomment-1190008894

   In pr-head CI check, an error happens: 
   ```
   [2022-07-20T07:57:45.501Z] python3 build_model.py -o build --test
   [2022-07-20T07:57:46.065Z] Traceback (most recent call last):
   [2022-07-20T07:57:46.065Z]   File "build_model.py", line 21, in <module>
   [2022-07-20T07:57:46.065Z]     from tvm import relay
   [2022-07-20T07:57:46.065Z]   File "/workspace/python/tvm/__init__.py", line 
79, in <module>
   [2022-07-20T07:57:46.065Z]     from . import micro
   [2022-07-20T07:57:46.065Z]   File "/workspace/python/tvm/micro/__init__.py", 
line 23, in <module>
   [2022-07-20T07:57:46.065Z]     from .model_library_format import (
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/micro/model_library_format.py", line 34, in <module>
   [2022-07-20T07:57:46.065Z]     from ..relay.backend import executor_factory
   [2022-07-20T07:57:46.065Z]   File "/workspace/python/tvm/relay/__init__.py", 
line 29, in <module>
   [2022-07-20T07:57:46.065Z]     from . import prelude
   [2022-07-20T07:57:46.065Z]   File "/workspace/python/tvm/relay/prelude.py", 
line 21, in <module>
   [2022-07-20T07:57:46.065Z]     from tvm.relay.transform import 
ToANormalFormExpr
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/relay/transform/__init__.py", line 20, in <module>
   [2022-07-20T07:57:46.065Z]     from .transform import *
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/relay/transform/transform.py", line 31, in <module>
   [2022-07-20T07:57:46.065Z]     from ..backend.utils import mangle_module_name
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/relay/backend/__init__.py", line 18, in <module>
   [2022-07-20T07:57:46.065Z]     from . import te_compiler
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/relay/backend/te_compiler.py", line 26, in <module>
   [2022-07-20T07:57:46.065Z]     from tvm.auto_scheduler import 
is_auto_scheduler_enabled
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/auto_scheduler/__init__.py", line 20, in <module>
   [2022-07-20T07:57:46.065Z]     from . import (
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/auto_scheduler/dispatcher.py", line 34, in <module>
   [2022-07-20T07:57:46.065Z]     from .cost_model import RandomModel, XGBModel
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/auto_scheduler/cost_model/__init__.py", line 21, in 
<module>
   [2022-07-20T07:57:46.065Z]     from .xgb_model import XGBModel
   [2022-07-20T07:57:46.065Z]   File 
"/workspace/python/tvm/auto_scheduler/cost_model/xgb_model.py", line 25, in 
<module>
   [2022-07-20T07:57:46.065Z]     from xgboost import callback
   ```
   
   I notice xgboost is not imported at beginning of this file. How could I use 
xgboost.callback.TrainingCallBack to define callback function? Any advices here?


-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to