From 2ec6a30722b0ef85632a2f3e7ce6f80da403008a Mon Sep 17 00:00:00 2001 From: davidriazati Date: Thu, 9 Apr 2020 22:50:49 -0700 Subject: [PATCH] Bump produced file format version (#36085) Summary: This was left off of #35741, but the max supported file format change has been landed for several weeks, so this should be fine to land. ](https://our.intern.facebook.com/intern/diff/20875051/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/36085 Pulled By: driazati Reviewed By: eellison Differential Revision: D20875051 fbshipit-source-id: c3b84c85d791cb6f286a2ed38ca5cd1219b332b2 --- caffe2/serialize/inline_container.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/caffe2/serialize/inline_container.h b/caffe2/serialize/inline_container.h index fbf7deb6b10..f9ff35db428 100644 --- a/caffe2/serialize/inline_container.h +++ b/caffe2/serialize/inline_container.h @@ -92,7 +92,12 @@ namespace serialize { constexpr uint64_t kMinSupportedFileFormatVersion = 0x1L; constexpr uint64_t kMaxSupportedFileFormatVersion = 0x3L; -constexpr uint64_t kProducedFileFormatVersion = 0x2L; + +// Versions (i.e. why was the version number bumped?) +// 1. Initial version +// 2. Removed op_version_set version numbers +// 3. Added type tags to pickle serialization of container types +constexpr uint64_t kProducedFileFormatVersion = 0x3L; // Writer-specific constants constexpr uint64_t kFieldAlignment = 64;