diff --git a/paddle/fluid/framework/program_desc.cc b/paddle/fluid/framework/program_desc.cc index 5b9073373ee22843c1efd28e2ed7d24abb3fa5e9..589905828f7793c614c0fe12259e9ba5ab11ceac 100644 --- a/paddle/fluid/framework/program_desc.cc +++ b/paddle/fluid/framework/program_desc.cc @@ -39,7 +39,7 @@ proto::ProgramDesc *ProgramDesc::Proto() { return &desc_; } -int ProgramDesc::Version() const { return desc_.version().version(); } +int64_t ProgramDesc::Version() const { return desc_.version().version(); } ProgramDesc::ProgramDesc() { desc_.mutable_version()->set_version(kCurProgramVersion); diff --git a/paddle/fluid/framework/program_desc.h b/paddle/fluid/framework/program_desc.h index 9cf3714b6adb6da831aa9c23a1ae983c97947b16..2ec0e9d7a0969d44f88c7407bfb8cd4646530147 100644 --- a/paddle/fluid/framework/program_desc.h +++ b/paddle/fluid/framework/program_desc.h @@ -57,7 +57,7 @@ class ProgramDesc { proto::ProgramDesc *Proto(); - int Version() const; + int64_t Version() const; // The output variable of feed_op is referenced as feed_target. // This function is used to collect the output variable's name of all diff --git a/paddle/fluid/framework/version.cc b/paddle/fluid/framework/version.cc index 3d559e26e0b629848a002a9a7ac3c9adf5047d12..81c0392bf3cc7378cec06a9de3ae81f2b221ecec 100644 --- a/paddle/fluid/framework/version.cc +++ b/paddle/fluid/framework/version.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/paddle/fluid/framework/version.h b/paddle/fluid/framework/version.h index 3a1a492701b56d75c123a231844ccbbacc1d611c..9945bc58c69df8456ff3d1aa0c777970bdbdbf98 100644 --- a/paddle/fluid/framework/version.h +++ b/paddle/fluid/framework/version.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.