Skip to content

[Relay] Mix mode type inference#6704

Merged
jroesch merged 1 commit into
apache:mainfrom
lixiaoquan:non_recursive_infer
Nov 6, 2020
Merged

[Relay] Mix mode type inference#6704
jroesch merged 1 commit into
apache:mainfrom
lixiaoquan:non_recursive_infer

Conversation

@lixiaoquan

@lixiaoquan lixiaoquan commented Oct 17, 2020

Copy link
Copy Markdown
Contributor

@mbrookhart @jroesch Could you please review? Thanks

@mbrookhart mbrookhart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

*
* fcheck_visited and fvisit_leaf are templated to encourage compiler inlining.
*/
template <typename FCheckVisited, typename FVisitLeaf>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we need to expose this in the header?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's a template function and we need to use it in type_infer.cc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

InferType directly extends ExprFunctor instead of using ExprVisitor or ExprMutator

@jroesch

jroesch commented Nov 6, 2020

Copy link
Copy Markdown
Member

@lixiaoquan sorry I forgot to merge this one, going to land now.

@jroesch jroesch merged commit 3cf997a into apache:main Nov 6, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 2, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 4, 2020
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Dec 4, 2020
@masahi masahi mentioned this pull request Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants