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

当输入的ncnn::Mat的size和input layer的h w不匹配的时候 net是怎么处理的 #151

Closed
ygyin-ivy opened this issue Sep 27, 2017 · 3 comments

Comments

@ygyin-ivy
Copy link

你好,我想问一下
我input layer的h w 是12 12
但是ncnn::Mat的size 是64 48
请问此时net的forward_layer是怎么处理的?

@nihui
Copy link
Member

nihui commented Sep 27, 2017

会依照输入的实际 Mat size 处理
input layer 的 w h c 实际并不会看

@ygyin-ivy
Copy link
Author

谢谢,不过如果接下来是全连接层就会出错吧?毕竟model的参数数目不会变化

@nihui
Copy link
Member

nihui commented Sep 27, 2017

对的,全卷积网络会这么做,有全连接层会出错

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

No branches or pull requests

2 participants