feature/inference analysis#10459
Closed
Superjomn wants to merge 22 commits intoPaddlePaddle:developfrom
Closed
Conversation
…into feature/convert_trt_io
Contributor
|
Since this PR is large, could it split into several small PRs? Maybe one concept with its test one PR? |
This was referenced May 8, 2018
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.
Inference Analysis
Borrow some ideas from
LLVM/analysis, the analysis phase optimize the codes(similar concept asProgramDesc) there is some analysis passes, the originalProgramDescwill be translated to a lower computation graph representation for simple operation, and the graph will pass through all the passes one by one just like a pipe.For example
All the passes can be controled by GFLAGS, and turned on/off by some configurations.
This is an Analysis framework designed to contain all the transpiler like analysis/optimization, which rewrites a
ProgramDescto an optimized one.code structure
data_flow_graph.cc/.hnodegraph_traitssome graph retrival algorithmspass.hdefine the basic Pass interfacespass_managerfluid_to_data_flow_graph_passtransform a data flow graph from a fluidProgramDesctensorrt_subgraph_passsplit sub-graphs forTensorRTdata_flow_graph_to_fluid_passtranslate from a data flow graph to a fluidProgramDescthat can be executed by aExecutordot, help to visualize a graph for better debugsubgraph_splittersplit a graph according to some conditionshelpersome helper methodsstatus