Bug Fix - WASM build break (#13699)

### Description
When using the build flag "--cmake_extra_defines
onnxruntime_DEBUG_NODE_INPUTS_OUTPUTS=1" with WASM it results with a
build break. Since we are comparing a const vs. non-const T type, this
added casting resolves the issue.
This commit is contained in:
shalvamist 2022-11-20 23:30:31 -08:00 committed by GitHub
parent da2bd3ad4d
commit 4a2a857030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ void VerifyTensorProtoFileData(const PathString& tensor_proto_path, gsl::span<co
actual_data.resize(expected_data.size());
ASSERT_STATUS_OK(utils::UnpackTensor(tensor_proto, Path{}, actual_data.data(), actual_data.size()));
ASSERT_EQ(gsl::make_span(actual_data), expected_data);
ASSERT_EQ(gsl::span<const T>(actual_data), expected_data);
}
} // namespace