From ff47eaf45f5d5cc9715aa455467f1af0edfd8872 Mon Sep 17 00:00:00 2001 From: Xin Pan <panxin.grad@gmail.com> Date: Tue, 28 Aug 2018 09:34:02 +0800 Subject: [PATCH] clean --- paddle/fluid/framework/program_desc.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paddle/fluid/framework/program_desc.cc b/paddle/fluid/framework/program_desc.cc index f2e0b79c4b1..5b9073373ee 100644 --- a/paddle/fluid/framework/program_desc.cc +++ b/paddle/fluid/framework/program_desc.cc @@ -32,10 +32,6 @@ void ProgramDesc::Flush() { for (auto &block : blocks_) { block->Flush(); } - // If not loaded, use current code version. - if (desc_.version().version() < 0) { - desc_.mutable_version()->set_version(kCurProgramVersion); - } } proto::ProgramDesc *ProgramDesc::Proto() { -- GitLab