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<MyCompilerConfigNode> {
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.
Is there any bug in TVMC ?, 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 ?