Skip to content

Commit

Permalink
Update runtime/onert/backend/train/ExtraTensorIndex.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zetwhite authored Aug 7, 2024
1 parent 5ec88fb commit 75142eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/onert/backend/train/ExtraTensorIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ template <> struct hash<onert::backend::train::ExtraTensorIndex>
const auto op_index = index.op_index();
const auto sub_index = index.sub_index();

assert(sizeof(op_index) <= 4);
assert(sizeof(op_index) <= sizeof(uint32_t));
static_assert(sizeof(size_t) >= sizeof(uint32_t),
"ExtraTensorIndex's hash creation error, size_t size is less than uint32_t");

Expand Down

0 comments on commit 75142eb

Please sign in to comment.