Add support for GCC 13 (#18178)

It is related to #18155 .

The issue has been fixed in the main branch by @jchen351
This commit is contained in:
Changming Sun 2023-11-01 10:33:52 -07:00 committed by GitHub
parent 749bcc7937
commit 0240274dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,7 +308,7 @@ Status ScatterData(
const auto& upd_shape = updates_input->Shape();
const auto num_dims = input_data_shape.NumDimensions();
assert(num_dims > 0);
ORT_RETURN_IF_NOT(num_dims > 0, "ScatterElements op: input tensor must have at least one dimension");
// Allocate and zero out counts. The input/output is of the same rank as
// indices/updates but the actual dimensions of indices/updates must be less or equal