Skip to content

[BUG FIX]fix armv7 model loading issue test=develop#2836

Merged
DannyIsFunny merged 1 commit into
PaddlePaddle:developfrom
DannyIsFunny:FIX_SHOUBAI
Feb 10, 2020
Merged

[BUG FIX]fix armv7 model loading issue test=develop#2836
DannyIsFunny merged 1 commit into
PaddlePaddle:developfrom
DannyIsFunny:FIX_SHOUBAI

Conversation

@DannyIsFunny

@DannyIsFunny DannyIsFunny commented Feb 7, 2020

Copy link
Copy Markdown
Collaborator

【BUG FIX】
问题描述:armv7下部分model无法加载
问题定位:加载模型是armv7要求数据指针地址必须为sizeof(T)的整数倍。
解决方法:本PR中将reinterpret_cast方法修改为memcpy方法,避免armv7下指针地址不规范问题

@DannyIsFunny DannyIsFunny merged commit 4c267e9 into PaddlePaddle:develop Feb 10, 2020
@DannyIsFunny DannyIsFunny deleted the FIX_SHOUBAI branch February 10, 2020 03:09
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.

2 participants