Skip to content

Commit

Permalink
common: add missing attribute to serializator and hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
densamoilov authored and vpirogov committed Mar 29, 2024
1 parent 4cad420 commit 7ed604a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/primitive_hashing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ size_t get_attr_hash(const primitive_attr_t &attr) {
// fpmath_mode
seed = hash_combine(seed, static_cast<size_t>(attr.fpmath_.mode_));
seed = hash_combine(seed, static_cast<size_t>(attr.fpmath_.apply_to_int_));
// deterministic
seed = hash_combine(seed, static_cast<size_t>(attr.deterministic_));
// acc_mode
seed = hash_combine(seed, static_cast<size_t>(attr.acc_mode_));

Expand Down
2 changes: 2 additions & 0 deletions src/common/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ void serialize_attr(
// fpmath_mode
sstream.write(&attr.fpmath_.mode_);
sstream.write(&attr.fpmath_.apply_to_int_);
// deterministic
sstream.write(&attr.deterministic_);
// acc_mode
sstream.write(&attr.acc_mode_);

Expand Down

0 comments on commit 7ed604a

Please sign in to comment.