mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Bumps readable file format version for torch.full inferring float from int values (#40089)
Summary: Reserves file format version 5 for marking when torch.full(int)->FloatTensor will be deprecated. Pull Request resolved: https://github.com/pytorch/pytorch/pull/40089 Differential Revision: D22066359 Pulled By: mruberry fbshipit-source-id: 6158e03ca75e3795a2641123ff23d67975170f44
This commit is contained in:
parent
b5d54db6f4
commit
3d8de74e17
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ namespace caffe2 {
|
|||
namespace serialize {
|
||||
|
||||
constexpr uint64_t kMinSupportedFileFormatVersion = 0x1L;
|
||||
constexpr uint64_t kMaxSupportedFileFormatVersion = 0x4L;
|
||||
constexpr uint64_t kMaxSupportedFileFormatVersion = 0x5L;
|
||||
|
||||
// Versions (i.e. why was the version number bumped?)
|
||||
// 1. Initial version
|
||||
|
|
@ -99,6 +99,8 @@ constexpr uint64_t kMaxSupportedFileFormatVersion = 0x4L;
|
|||
// 3. Added type tags to pickle serialization of container types
|
||||
// 4. Stopped integer division using torch.div
|
||||
// (a versioned symbol preserves the historic behavior of versions 1--3)
|
||||
// 5. (Read-only) Stops torch.full inferring a floating point dtype
|
||||
// when given integer fill values.
|
||||
constexpr uint64_t kProducedFileFormatVersion = 0x4L;
|
||||
|
||||
// Writer-specific constants
|
||||
|
|
|
|||
Loading…
Reference in a new issue