mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-04 23:59:56 +00:00
Fix x86 build error in GraphDescBuilder.cpp affecting packaging pipeline (#19045)
### Description This addresses a 32 bit build error affecting the packaging pipeline ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
parent
99a8400e90
commit
975a315cd7
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ namespace Dml::GraphDescBuilder
|
|||
// The tensor description's size should be no larger than the constant input unless it was rounded to
|
||||
// the required alignment.
|
||||
assert(((constantInput->GetTensorByteSize() + 3) & ~3) >= tensorDesc->totalTensorSizeInBytes);
|
||||
size_t minimumConstantSize = std::min(constantInput->GetTensorByteSize(), tensorDesc->totalTensorSizeInBytes);
|
||||
size_t minimumConstantSize = std::min(constantInput->GetTensorByteSize(), gsl::narrow_cast<size_t>(tensorDesc->totalTensorSizeInBytes));
|
||||
auto data = static_cast<const uint8_t*>(constantInput->GetData());
|
||||
std::vector<uint8_t> tensorData(data, data + minimumConstantSize);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue