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 unaryop bug #200

Merged
merged 2 commits into from
Nov 22, 2017
Merged

fix unaryop bug #200

merged 2 commits into from
Nov 22, 2017

Conversation

water668
Copy link
Contributor

  • incorrect memory access when matrix is multi-channel

Signed-off-by: wangshunli shunli0521.hi@163.com

- incorrect memory access when matrix is multi-channel

Signed-off-by: wangshunli <shunli0521.hi@163.com>
@nihui
Copy link
Member

nihui commented Nov 22, 2017

int size = w * h * channels; 改为 int size = a.total(); 会更好,避免循环 channel

@water668
Copy link
Contributor Author

已改为a.total()方式

@nihui nihui merged commit 429e98c into Tencent:master Nov 22, 2017
ghimiredhikura pushed a commit to ghimiredhikura/NCNNSFD that referenced this pull request Jul 26, 2020
* fix unaryop bug
- incorrect memory access when matrix is multi-channel

Signed-off-by: wangshunli <shunli0521.hi@163.com>

* Update unaryop.cpp
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.

None yet

2 participants