|
|
|
@ -19,6 +19,11 @@ limitations under the License. */
|
|
|
|
|
namespace paddle {
|
|
|
|
|
namespace framework {
|
|
|
|
|
|
|
|
|
|
// Note:
|
|
|
|
|
// Program and Tensor that pass the IsXXXVersionSupported should
|
|
|
|
|
// be supported by the current codes. Otherwise, it's a compatibility
|
|
|
|
|
// bug.
|
|
|
|
|
|
|
|
|
|
// The program version the current codes generate.
|
|
|
|
|
constexpr int64_t kCurProgramVersion = 0;
|
|
|
|
|
|
|
|
|
@ -27,8 +32,11 @@ constexpr int64_t kCurProgramVersion = 0;
|
|
|
|
|
constexpr int64_t kSupportedProgramVersion[] = {0};
|
|
|
|
|
|
|
|
|
|
// Due to historical reasons, tensor version use uint32_t.
|
|
|
|
|
// The tensor version the current codes generate.
|
|
|
|
|
constexpr uint32_t kCurTensorVersion = 0;
|
|
|
|
|
|
|
|
|
|
// The tensor version that was generated by previous or current codes
|
|
|
|
|
// and supported by current codes.
|
|
|
|
|
constexpr uint32_t kSupportedTensorVersion[] = {0};
|
|
|
|
|
|
|
|
|
|
bool IsProgramVersionSupported(int64_t version);
|
|
|
|
|