Feature/engine refactor#10497
Merged
luotao1 merged 10 commits intoPaddlePaddle:developfrom May 9, 2018
Merged
Conversation
luotao1
reviewed
May 9, 2018
paddle/fluid/inference/engine.h
Outdated
| // Return the IO buffer that allocated in engine. One can read/write directly | ||
| // on the buffer. If the buffer's buffer is nullptr, one can also allocate | ||
| // memory and maintain it outside the engine. | ||
| virtual Buffer& buffer(const std::string& tensor) = 0; |
Contributor
There was a problem hiding this comment.
tensor->name, 这里参数指的是buffer名字吧
| @@ -1,4 +1,5 @@ | |||
| nv_library(tensorrt_engine SRCS engine.h engine.cc helper.h ../engine.h) | |||
Contributor
There was a problem hiding this comment.
nv_library(tensorrt_engine SRCS engine.cc)
| // data directly to the buffer to save data copy overhead. | ||
| // NOTE this should be used after calling `FreezeNetwork`. | ||
| void*& buffer(const std::string& name); | ||
| Buffer& buffer(const std::string& tensor) override; |
putcn
pushed a commit
to putcn/Paddle
that referenced
this pull request
May 10, 2018
* init refactor * init * update some comment * fix build * fix errorrr * fix bug * fix comment * update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor the engine base API for Anakin engine.