Skip to content

Commit 7ed604a

Browse files
densamoilovvpirogov
authored andcommitted
common: add missing attribute to serializator and hasher
1 parent 4cad420 commit 7ed604a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/common/primitive_hashing.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ size_t get_attr_hash(const primitive_attr_t &attr) {
203203
// fpmath_mode
204204
seed = hash_combine(seed, static_cast<size_t>(attr.fpmath_.mode_));
205205
seed = hash_combine(seed, static_cast<size_t>(attr.fpmath_.apply_to_int_));
206+
// deterministic
207+
seed = hash_combine(seed, static_cast<size_t>(attr.deterministic_));
206208
// acc_mode
207209
seed = hash_combine(seed, static_cast<size_t>(attr.acc_mode_));
208210

src/common/serialization.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ void serialize_attr(
172172
// fpmath_mode
173173
sstream.write(&attr.fpmath_.mode_);
174174
sstream.write(&attr.fpmath_.apply_to_int_);
175+
// deterministic
176+
sstream.write(&attr.deterministic_);
175177
// acc_mode
176178
sstream.write(&attr.acc_mode_);
177179

0 commit comments

Comments
 (0)