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

[Relay] Fix interpreter for dyanmic shape input of ndarray_size #6086

Merged
merged 1 commit into from
Jul 25, 2020

Conversation

lixiaoquan
Copy link
Contributor

@icemelon9 Could you please take a look?

@lixiaoquan lixiaoquan force-pushed the ndarray_size branch 3 times, most recently from 4d31d94 to 1644b8a Compare July 23, 2020 12:50
Copy link
Contributor

@MarisaKirisame MarisaKirisame left a comment

Choose a reason for hiding this comment

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

Please rebase and refactor. otherwise pretty good.

@@ -486,6 +487,9 @@ class Interpreter : public ExprFunctor<ObjectRef(const Expr& n)>,
// The output shape of shape_of must be static since Relay doesn't support
// dynamic rank tensors.
is_dyn = false;
} else if (call_node->op == ndarray_size_op_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you refactor the code into IsDynamic? e.g. make an IsDynamic that take a call node.

@tqchen tqchen merged commit 959cff1 into apache:master Jul 25, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 2, 2020
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