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

fix topi c++ conv2d_nchw lambda expr issue #3570

Merged
merged 1 commit into from
Jul 19, 2019

Conversation

zacario-li
Copy link
Contributor

@zacario-li zacario-li commented Jul 18, 2019

weight tensor's usage should be W(o, i, kh, kw)
fix #3562

@@ -268,7 +268,7 @@ inline tvm::Tensor conv2d_nchw(const tvm::Tensor& I,
: pad(I, {tvm::Expr(0), tvm::Expr(0), pad_h, pad_w});
auto l = [&](tvm::Var b, tvm::Var o, tvm::Var h, tvm::Var w) {
return tvm::sum(
T(b, i, stride_h * h + kh, stride_w * w + kw) * W(i, o, kh, kw),
T(b, i, stride_h * h + kh, stride_w * w + kw) * W(o, i, kh, kw),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have any test case for conv2d cpp implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, no test conv2d cpp implementation there.

@tqchen tqchen merged commit 3d7da36 into apache:master Jul 19, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Aug 9, 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.

[TOPI][C++]conv2d_nchw mistake?
3 participants