Skip to content

Commit 4f55590

Browse files
authored
analysis/code clean (#11964)
1 parent 845618e commit 4f55590

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

paddle/fluid/inference/analysis/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ It can be used as a helper class that draws the modified graph after each pass.
5454
There is some helper legacy/function/class for analysis.
5555

5656
- [dot.h](./dot.h) give a easy to use interface for generating `DOT` codes,
57-
- [graph_traits.h](./graph_traits.h) contains the graph traversal algorithms, it uses `iterator` to make the algorithms easy to share across different passes.
57+
- [graph_traits.h](./graph_traits.h) contains the interfaces of the graph traversal algorithms, it uses `iterator`to make the algorithms easy to share across different passes,
58+
there are some implementations in [data_flow_graph.cc](./data_flow_graph.cc) , such as BFS and DFS..

paddle/fluid/inference/analysis/pass.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ class Pass {
3232
public:
3333
Pass() = default;
3434
virtual ~Pass() = default;
35-
// Virtual method overridden by subclasses to do only necessary initialization
36-
// before any pass is run.
37-
// virtual bool Initialize() { return false; }
38-
// There is some passes such as FlowToDataFlowGraphPass that needs a
39-
// ProgramDesc. Here use the native ProgramDesc ProtoBuf message, so that it
40-
// only couple with the proto file.
41-
// virtual bool Initialize(const framework::proto::ProgramDesc &desc) { return
42-
// false; }
43-
// There are some Passes such as DataFlowGraphToFluidPass that will output a
44-
// ProgramDesc.
45-
// virtual bool Initialize(framework::proto::ProgramDesc *desc) { return
46-
// false; }
47-
4835
// Mutable Pass.
4936
virtual bool Initialize(Argument *argument) { return false; }
5037
// Readonly Pass.

0 commit comments

Comments
 (0)