File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -146,22 +146,5 @@ void NaiveExecutor::CleanFeedFetchOps() {
146
146
ops_.swap (ops);
147
147
}
148
148
149
- void NaiveExecutor::EnableMKLDNN (const ProgramDesc &program) {
150
- #ifdef PADDLE_WITH_MKLDNN
151
- VLOG (3 ) << " use_mkldnn=True" ;
152
- for (size_t block_id = 0 ; block_id < program.Size (); ++block_id) {
153
- auto *block = const_cast <ProgramDesc &>(program).MutableBlock (block_id);
154
- for (auto *op : block->AllOps ()) {
155
- if (op->HasAttr (" use_mkldnn" )) {
156
- op->SetAttr (" use_mkldnn" , true );
157
- }
158
- }
159
- }
160
- #else
161
- LOG (WARNING)
162
- << " 'MKLDNN' is not supported, Please re-compile with WITH_MKLDNN option" ;
163
- #endif
164
- }
165
-
166
149
} // namespace framework
167
150
} // namespace paddle
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ class NaiveExecutor {
48
48
49
49
void CleanFeedFetchOps ();
50
50
51
- void EnableMKLDNN (const ProgramDesc& program);
52
-
53
51
protected:
54
52
void CreateVariables (const ProgramDesc& desc, Scope* scope, int block_id);
55
53
You can’t perform that action at this time.
0 commit comments