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

[QNN] InferType changes that missed CI. #3779

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

anijain2305
Copy link
Contributor

@anijain2305 anijain2305 commented Aug 15, 2019

@vinx13 @ZihengJiang

Added a quick fix to unblock CI. Will think about requantize default output_dtype to remove the dependence on InferType.

mod = relay.Module.from_expr(data[0])
mod = relay.transform.InferType()(mod)
entry = mod["main"]
data0 = entry if isinstance(data[0], relay.Function) else entry.body
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use from ...frontend.common import infer_type. It seems unnecessary duplication of code. If the namespace is a problem we should probably move the existing method to a better place?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, it seems the method from ...frontend.common import infer_type has more checks.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems strange to import pass like infer_type from frontend. Should we consider create shortcut for infer_type? @jroesch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shortcut seems like a good idea.

Maybe, we can get this in to unblock CI and then follow up with another PR for shortcut and related changes to remove code duplication.

@ZihengJiang ZihengJiang merged commit 60fc9f7 into apache:master Aug 15, 2019
@anijain2305 anijain2305 deleted the fix_ci branch August 15, 2019 06:50
wweic pushed a commit to neo-ai/tvm that referenced this pull request Aug 16, 2019
anijain2305 added a commit to anijain2305/tvm that referenced this pull request Aug 22, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Sep 6, 2019
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.

3 participants