提交 0323053d 编写于 作者: Z zhangyang0701

Not use MemoryOptPass() for FPGA track

上级 54825257
...@@ -62,7 +62,9 @@ Executor<Device, T>::Executor(const Program<Device> &program, ...@@ -62,7 +62,9 @@ Executor<Device, T>::Executor(const Program<Device> &program,
use_optimize_ ? program_.optimizeProgram : program_.originProgram; use_optimize_ ? program_.optimizeProgram : program_.originProgram;
PADDLE_MOBILE_ENFORCE(program_desc_ != nullptr, PADDLE_MOBILE_ENFORCE(program_desc_ != nullptr,
"program_desc_ should not be nullptr"); "program_desc_ should not be nullptr");
#ifndef PADDLE_MOBILE_FPGA
pass::MemoryOptPass()(program_desc_.get(), program_.scope.get()); pass::MemoryOptPass()(program_desc_.get(), program_.scope.get());
#endif
// resize feed and fetch list // resize feed and fetch list
// should init feed and fetch variables before infer shape // should init feed and fetch variables before infer shape
InitFeedFetchList(); InitFeedFetchList();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册