-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
img2col计算卷积对比直接计算卷积是否会高效一点? #48
Comments
哪个卷积类是基类,针对android的卷积派生类是用汇编写的 |
@aitaoquanyi 在一些传统的模型里面IM2COL+GEMM的效果还不错( 非separate convolution的情景),但是在新的 像 mobilenet这样的网络里面,IM2COL会占用掉大多数的时间,甚至大于GEMM的时间,感觉还是要根据实际的网络来定的。 |
是的img2col的话,速度会提高一倍多(不用多指令加速,不用openblas) |
@ccJia 赞同你的观点,im2col也是要消耗时间的,要根据实际的特点来采用合适的方法 |
Closed
最新代码已有 im2col + gemm 的实现 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者你好:
你的工作非常棒,但是在读你代码时,发现卷积计算方式为传统方式,你也提到直接计算卷积会节省内存,我想请教一下,如果按照img2col展开为矩阵乘法的方式是否会计算效率更高一些?谢谢!
The text was updated successfully, but these errors were encountered: