Skip to content

Commit f7bbcfa

Browse files
committed
remove unused code in paddle_inference_api.h
test=develop
1 parent 8837669 commit f7bbcfa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

paddle/fluid/inference/api/paddle_inference_api.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ZeroCopyTensor {
124124
std::vector<std::vector<size_t>> lod() const;
125125

126126
protected:
127-
ZeroCopyTensor(void* scope) : scope_{scope} {}
127+
explicit ZeroCopyTensor(void* scope) : scope_{scope} {}
128128
void SetName(const std::string& name) { name_ = name; }
129129
void* FindTensor() const;
130130

@@ -259,12 +259,6 @@ struct AnalysisConfig : public NativeConfig {
259259
kExclude // Specify the disabled passes in `ir_passes`.
260260
};
261261

262-
void SetIncludeMode() {
263-
ir_mode = IrPassMode::kInclude;
264-
// this pass has to be run at the beginning of all fuse passes
265-
ir_passes = {"infer_clean_graph_pass"};
266-
}
267-
268262
// Determine whether to perform graph optimization.
269263
bool enable_ir_optim = true;
270264
// Manually determine the IR passes to run.

0 commit comments

Comments
 (0)