diff --git a/src/framework/executor.cpp b/src/framework/executor.cpp index fe95e6c7f3e913e0c0801b0371ffe5a179fb77ff..b9f455bd2708c82bd2165dc34e0a22150de40fac 100644 --- a/src/framework/executor.cpp +++ b/src/framework/executor.cpp @@ -62,7 +62,9 @@ Executor::Executor(const Program &program, use_optimize_ ? program_.optimizeProgram : program_.originProgram; PADDLE_MOBILE_ENFORCE(program_desc_ != nullptr, "program_desc_ should not be nullptr"); +#ifndef PADDLE_MOBILE_FPGA pass::MemoryOptPass()(program_desc_.get(), program_.scope.get()); +#endif // resize feed and fetch list // should init feed and fetch variables before infer shape InitFeedFetchList();