File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
paddle/fluid/inference/api Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class ZeroCopyTensor {
124
124
std::vector<std::vector<size_t >> lod () const ;
125
125
126
126
protected:
127
- ZeroCopyTensor (void * scope) : scope_{scope} {}
127
+ explicit ZeroCopyTensor (void * scope) : scope_{scope} {}
128
128
void SetName (const std::string& name) { name_ = name; }
129
129
void * FindTensor () const ;
130
130
@@ -259,12 +259,6 @@ struct AnalysisConfig : public NativeConfig {
259
259
kExclude // Specify the disabled passes in `ir_passes`.
260
260
};
261
261
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
-
268
262
// Determine whether to perform graph optimization.
269
263
bool enable_ir_optim = true ;
270
264
// Manually determine the IR passes to run.
You can’t perform that action at this time.
0 commit comments