-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Under Hybrid Target, I have created target specific config or compiler options in the backend(codegen), These option are given with default values too.
Example:
TVM_ROOT/src/relay/backend/contrib/my_target/codegen.cc
struct MyCompilerConfigNode : public tvm::AttrsNode {
String mcpu;
TVM_DECLARE_ATTRS(MyCompilerConfigNode, "ext.attrs.MyCompilerConfigNode") {
TVM_ATTR_FIELD(mcpu)
.describe("CPU type")
.set_default("my_cpu"); <=========
}
};
In the TVMC , I try to access those options under the partition_for_target function
TVM_ROOT/relay/op/contrib/target.py
However, the default values given to these options are not visible.
I doubt TVMC is not handling or honoring the default values for options.
I have no clue if it works for other hybrid target like cmsis-nn or vitis-ai ? Could some put light on this ?
Expected behavior
What you were expecting
Actual behavior
Am expecting the default values for any command line options described in the codegen.cc
Environment
Any environment details, such as: Operating System, TVM version, etc
Steps to reproduce
Preferably a minimal script to cause the issue to occur.
Triage
Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).
- needs-triage