From e762d85de41ebc8d60a31b79c6a21c23a5afa0d5 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Mon, 10 Sep 2018 11:36:42 +0800 Subject: [PATCH] clean --- paddle/fluid/framework/program_desc.cc | 2 +- paddle/fluid/framework/program_desc.h | 2 +- paddle/fluid/framework/version.cc | 2 +- paddle/fluid/framework/version.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/framework/program_desc.cc b/paddle/fluid/framework/program_desc.cc index 5b9073373..589905828 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 9cf3714b6..2ec0e9d7a 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 3d559e26e..81c0392bf 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 3a1a49270..9945bc58c 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. -- GitLab