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

add load_param_mem(), which load plain text params from memory buf. #579

Closed
wants to merge 1 commit into from
Closed

Conversation

xinyu391
Copy link
Contributor

虽然有load_param(const unsigned char*& mem),从内存加载 bin格式的params,但是bin格式,只能通过layer index 指定输入输出,不同模型的layer index 不一样,但通过plain text 格式的params,则可以定义特定的输入输出名字。
虽然有 fmemopen()函数可以将一块内存映射位FILE*,就可以套用load_param(FILE* fp), 但是fmemopen函数只能在Android6.0+上使用。
所以加了这两个函数,函数内容和load_param(FILE* fp);几乎一样,只是通过宏来更改位从内存字符串中sscanf数据。

@tencent-adm
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


jesse_li seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@xinyu391
Copy link
Contributor Author

咋回事啊,一直pending中

@nihui
Copy link
Member

nihui commented Sep 26, 2018

咋回事啊,一直pending中

注册下CLA ...

@xinyu391
Copy link
Contributor Author

注册了也签名了,但是我github邮箱,和git commit里面的不一样,在github中增加邮箱后,点击上面的 “recheck“ ,出现404.我尝试重新 pull request下

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

3 participants