Skip to content

Commit be58997

Browse files
author
Wojciech Uss
committed
remove unused method from naive executor
test=develop
1 parent 97a87bb commit be58997

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

paddle/fluid/framework/naive_executor.cc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,5 @@ void NaiveExecutor::CleanFeedFetchOps() {
146146
ops_.swap(ops);
147147
}
148148

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-
166149
} // namespace framework
167150
} // namespace paddle

paddle/fluid/framework/naive_executor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class NaiveExecutor {
4848

4949
void CleanFeedFetchOps();
5050

51-
void EnableMKLDNN(const ProgramDesc& program);
52-
5351
protected:
5452
void CreateVariables(const ProgramDesc& desc, Scope* scope, int block_id);
5553

0 commit comments

Comments
 (0)