Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ETHOSN] Match config for is-supported with compilation target #9160

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

leo-blonk
Copy link
Contributor

The Ethos-N variant configuration for the is-supported functionality is now
the same as the variant configuration for the actual compilation

Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo a nit.

A question : how does the code work w/o this change ? (I guess there should be accompanied docker change with versions)

src/relay/backend/contrib/ethosn/codegen.cc Outdated Show resolved Hide resolved
The Ethos-N variant configuration for the is-supported functionality is now
the same as the variant configuration for the actual compilation
@leo-blonk leo-blonk reopened this Oct 21, 2021
Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Leo-arm ,

This is much better now :).
I have left some minor nits/comments. If there is an immediate follow up, Im happy to merge this if we can include the fixes in the next one.

@@ -322,6 +338,8 @@ class EthosnCompiler {
*/
static std::pair<std::vector<uint32_t>, std::vector<uint32_t>> GetInputOutputOrder(
NetworkWithIDs network, const std::unique_ptr<sl::CompiledNetwork>& compiled_network);

static std::unique_ptr<sl::SupportQueries> m_Queries;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add docs.

: AttrsWithDefaultValues<EthosnCompilerConfig>();
auto m_Queries = sl::SupportQueries(sl::GetFwAndHwCapabilities(
sl::EthosNVariantFromString(cfg.value()->variant.c_str()), cfg.value()->sram_size_bytes));
std::unique_ptr<sl::SupportQueries> EthosnCompiler::m_Queries;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit : Do we need this line ?

@leo-blonk
Copy link
Contributor Author

Thanks Manupa. I expect to issue the following PR in the next days and I will take care of the two issues there, if that is OK with you.

@manupak manupak merged commit edda830 into apache:main Oct 22, 2021
@manupak
Copy link
Contributor

manupak commented Oct 22, 2021

This is merged now!. Thanks @Leo-arm.

@leo-blonk leo-blonk deleted the issupported branch October 22, 2021 12:53
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
…e#9160)

The Ethos-N variant configuration for the is-supported functionality is now
the same as the variant configuration for the actual compilation
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
…e#9160)

The Ethos-N variant configuration for the is-supported functionality is now
the same as the variant configuration for the actual compilation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants