diff --git a/inferencer-fluid-cpu/include/fluid_cpu_engine.h b/inferencer-fluid-cpu/include/fluid_cpu_engine.h index b951670ee6193f6ecd7bc88e2a6bc57134943fe9..a7ba3ae13bfa040f3a6f4b05d8d5cd6b93ae36b5 100644 --- a/inferencer-fluid-cpu/include/fluid_cpu_engine.h +++ b/inferencer-fluid-cpu/include/fluid_cpu_engine.h @@ -134,8 +134,7 @@ class FluidCpuAnalysisCore : public FluidFamilyCore { analysis_config.SetCpuMathLibraryNumThreads(1); if (params.enable_memory_optimization()) { - analysis_config.EnableMemoryOptim(params.static_optimization(), - params.force_update_static_cache()); + analysis_config.EnableMemoryOptim(); } analysis_config.SwitchSpecifyInputNames(true); @@ -200,8 +199,7 @@ class FluidCpuAnalysisDirCore : public FluidFamilyCore { analysis_config.SetCpuMathLibraryNumThreads(1); if (params.enable_memory_optimization()) { - analysis_config.EnableMemoryOptim(params.static_optimization(), - params.force_update_static_cache()); + analysis_config.EnableMemoryOptim(); } AutoLock lock(GlobalPaddleCreateMutex::instance()); @@ -519,8 +517,7 @@ class FluidCpuAnalysisDirWithSigmoidCore : public FluidCpuWithSigmoidCore { analysis_config.SetCpuMathLibraryNumThreads(1); if (params.enable_memory_optimization()) { - analysis_config.EnableMemoryOptim(params.static_optimization(), - params.force_update_static_cache()); + analysis_config.EnableMemoryOptim(); } AutoLock lock(GlobalPaddleCreateMutex::instance()); diff --git a/inferencer-fluid-gpu/include/fluid_gpu_engine.h b/inferencer-fluid-gpu/include/fluid_gpu_engine.h index 30bae22d2f8878d4a2351a7417eb927e7312c251..c21a43ba19556f5e685689316533ddb2e9739630 100644 --- a/inferencer-fluid-gpu/include/fluid_gpu_engine.h +++ b/inferencer-fluid-gpu/include/fluid_gpu_engine.h @@ -136,8 +136,7 @@ class FluidGpuAnalysisCore : public FluidFamilyCore { analysis_config.SetCpuMathLibraryNumThreads(1); if (params.enable_memory_optimization()) { - analysis_config.EnableMemoryOptim(params.static_optimization(), - params.force_update_static_cache()); + analysis_config.EnableMemoryOptim(); } analysis_config.SwitchSpecifyInputNames(true); @@ -202,8 +201,7 @@ class FluidGpuAnalysisDirCore : public FluidFamilyCore { analysis_config.SetCpuMathLibraryNumThreads(1); if (params.enable_memory_optimization()) { - analysis_config.EnableMemoryOptim(params.static_optimization(), - params.force_update_static_cache()); + analysis_config.EnableMemoryOptim(); } AutoLock lock(GlobalPaddleCreateMutex::instance()); @@ -521,8 +519,7 @@ class FluidGpuAnalysisDirWithSigmoidCore : public FluidGpuWithSigmoidCore { analysis_config.SetCpuMathLibraryNumThreads(1); if (params.enable_memory_optimization()) { - analysis_config.EnableMemoryOptim(params.static_optimization(), - params.force_update_static_cache()); + analysis_config.EnableMemoryOptim(); } AutoLock lock(GlobalPaddleCreateMutex::instance());