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

Net::ExtractBlob() error #4

Closed
Orangels opened this issue May 10, 2018 · 2 comments
Closed

Net::ExtractBlob() error #4

Orangels opened this issue May 10, 2018 · 2 comments

Comments

@Orangels
Copy link

Orangels commented May 10, 2018

我在跑 ios 程序的时候 ,最后输出结果时调用 Net::ExtractBlob(float** output_ptr, std::string name) 这个函数报错
调用部分代码是这样的:
float p = NULL;
forward_net.ExtractBlob(&p, "fc7");
请问是这个 指针初始化的问题么?
在这个 forward_net.ExtractBlob(float
output_ptr, std::string name) 实现里给数组指针分配内存,在函数内部为什么要
assert(output_ptr == NULL);

@Mengjintao
Copy link
Contributor

You need to allocate memory in advance for that output data pointer to receive the return data.

@turbo0628
Copy link
Collaborator

Hi orangles, 我更新了API,原先的实现十分不友好,请再试一下

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