leandron opened a new issue, #14119:
URL: https://github.com/apache/tvm/issues/14119
While testing `v0.11.0` branch, there is an issue making many tests to fail,
to do with `python/tvm/micro/build.py:106:
MicroTVMTemplateProjectNotFoundError`.
```
tvm.micro.build.MicroTVMTemplateProjectNotFoundError
Stacktrace
interface_api = 'packed', use_unpacked_api = True
test_runner = AOTTestRunner(makefile='default', prologue='', epilogue='',
includes=[], parameters={}, pass_config={})
@parametrize_aot_options
def test_add_with_params(interface_api, use_unpacked_api, test_runner):
"""Tests compilation of add with parameters"""
input_x = relay.var("x", shape=(1, 10))
input_y = relay.var("y", shape=(1, 10))
input_z = relay.add(input_x, input_y)
func = relay.Function([input_x, input_y], input_z)
input_x_data = np.ones((1, 10)).astype("float32")
input_y_data = np.random.uniform(size=(1, 10)).astype("float32")
params = {"x": input_x_data}
inputs = {"y": input_y_data}
output_list = generate_ref_data(func, inputs, params)
compile_and_run(
AOTTestModel(
module=IRModule.from_expr(func),
inputs=inputs,
outputs=output_list,
params=params,
),
test_runner,
interface_api,
> use_unpacked_api,
)
tests/python/relay/aot/test_crt_aot.py:123:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
python/tvm/testing/aot.py:895: in compile_and_run
verbose=verbose,
python/tvm/testing/aot.py:834: in run_and_check
run_and_check_body(os.path.join(tmpdir.path, "test"))
python/tvm/testing/aot.py:725: in run_and_check_body
tvm.micro.copy_crt_config_header("crt", include_path)
python/tvm/micro/build.py:122: in copy_crt_config_header
crt_config_path = Path(get_microtvm_template_projects(platform)) /
"crt_config" / "crt_config.h"
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
platform = 'crt'
def get_microtvm_template_projects(platform: str) -> str:
"""Find microTVM template project directory for specific platform.
Parameters
----------
platform : str
Platform type which should be defined in MicroTVMTemplateProject.
Returns
-------
str :
Path to template project directory for platform.
"""
if platform not in MicroTVMTemplateProject.list():
raise ValueError(f"platform {platform} is not supported.")
microtvm_template_projects = None
for path in libinfo.find_lib_path():
template_path = os.path.join(os.path.dirname(path),
"microtvm_template_projects")
if os.path.isdir(template_path):
microtvm_template_projects = template_path
break
else:
> raise MicroTVMTemplateProjectNotFoundError()
E tvm.micro.build.MicroTVMTemplateProjectNotFoundError
python/tvm/micro/build.py:106: MicroTVMTemplateProjectNotFoundError
```
I'm wondering if @areusch @mehrdadh can you help troubleshoot this? It is
not present in the current `main`, so I assume it was fixed, but I couldn't
track it down when searching for closed/merged PRs. Any idea?
For visibility I'm tagging the Release Schedule #13586
--
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]