8000 Halide AutoSchedule Error · Issue #7670 · halide/Halide · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Halide AutoSchedule Error #7670
Closed
Closed
@Gager-Git-life

Description

@Gager-Git-life

How to use autoscheduler in the latest version of halide?

##I modified the code in the auto_schedule section of app/onnx/model.cpp by referring to the halide documentation
std::string auto_schedule(const HalideModel &pipeline) { // Generate a schedule for the pipeline. Halide::Target tgt = Halide::get_host_target(); // auto schedule = pipeline.rep->auto_schedule(tgt); Halide::AutoschedulerParams autoscheduler_params = Halide::AutoschedulerParams("Adams2019"); auto schedule = pipeline.rep->apply_autoscheduler(tgt, autoscheduler_params); return schedule.schedule_source; }

##When I compile and test, the following error occurs
`PYTHONPATH="bin/host/:$PYTHONPATH" python3 -m unittest model_test.py -v
test_empty_model (model_test.ModelTest) ... ok
test_model_with_initializer (model_test.ModelTest) ... ok
test_scalars (model_test.ModelTest) ... ERROR
test_small_model (model_test.ModelTest) ... ERROR
test_tensors_rank_zero (model_test.ModelTest) ... ok

======================================================================
ERROR: test_scalars (model_test.ModelTest)

Traceback (most recent call last):
File "/home/gager/Halide/apps/onnx/model_test.py", line 64, in test_scalars
schedule = model.OptimizeSchedule()
File "/home/gager/Halide/apps/onnx/model.py", line 30, in OptimizeSchedule
return model_cpp.AutoSchedule(self.pipeline)
RuntimeError: Caught an unknown exception!

======================================================================
ERROR: test_small_model (model_test.ModelTest)

Traceback (most recent call last):
File "/home/gager/Halide/apps/onnx/model_test.py", line 36, in test_small_model
schedule = model.OptimizeSchedule()
File "/home/gager/Halide/apps/onnx/model.py", line 30, in OptimizeSchedule
return model_cpp.AutoSchedule(self.pipeline)
RuntimeError: Caught an unknown exception!


Ran 5 tests in 0.402s

FAILED (errors=2)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0