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

static memory place #72

Open
LaoYingBu opened this issue Apr 27, 2018 · 2 comments
Open

static memory place #72

LaoYingBu opened this issue Apr 27, 2018 · 2 comments

Comments

@LaoYingBu
Copy link

你好,我有个问题很困惑:
[在新的版本中,在网络初始化的时候就规划好blobs_中的blob指针之间的关系,与forward过程中根据blob_life_time_动态回收MemBlock到MemPool中有什么区别啊?我用tools/parse_mem.py的分析结果好像都差不多的啊?

@luoyetx
Copy link
Owner

luoyetx commented Apr 27, 2018

我自己分析来看也确实差不多 😂

@luoyetx
Copy link
Owner

luoyetx commented Apr 27, 2018

静态分配还可以进一步做,将多个 blob 的内存拼接起来组成大内存,在同一块大内存上分配给小 blob,不过这个实现起来比较麻烦,而且不一定有最优解

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