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

[BUG] reshape.cpp 中的 int Reshape::load_param(FILE* paramfp) #111

Closed
huanyingjun opened this issue Aug 26, 2017 · 3 comments
Closed

[BUG] reshape.cpp 中的 int Reshape::load_param(FILE* paramfp) #111

huanyingjun opened this issue Aug 26, 2017 · 3 comments

Comments

@huanyingjun
Copy link

int Reshape::load_param(FILE* paramfp)
{
int nscan = fscanf(paramfp, "%d %d %d %d",
&w, &h, &c, &permute);

这里应该是
int nscan = fscanf(paramfp, "%d %d %d %d",
&c, &w, &h, &permute);

才对吧?

@onlyygo
Copy link

onlyygo commented Sep 4, 2017

你是使用的caffe转ncnn模型后遇到的问题吧?我是直接将转换好的ncnn的模型定义文件reshape层的后面三个参数手动调换位置。

@onlyygo
Copy link

onlyygo commented Sep 4, 2017

还有,就是这个读取的4个数,但是txt里面只有三个额,奇怪的是ubuntu和android下运行没问题。不过放到win(uwp开发)下到这一步就出错,不知道为什么

@nihui
Copy link
Member

nihui commented Sep 4, 2017

195193f

手头没有 reshape 的模型可以测试,尚不清楚有没有修复 =_=
最后一个数字代表是否要进行 CHW -> HWC 的转换,只实现了 reshape 成一维的情况,适用在 tensorflow ...

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

3 participants