Skip to content

Conversation

PatriceVignola
Copy link
Contributor

Description

This change 55a6694 didn't take into account external data when unpacking initializer, and therefore crashes when trying to unpack them.

fdwr
fdwr previously approved these changes Feb 6, 2024
@PatriceVignola PatriceVignola merged commit 302d4be into main Feb 7, 2024
@PatriceVignola PatriceVignola deleted the user/pavignol/fix-external-data-unpacking branch February 7, 2024 01:10
ComPtr<OnnxTensorWrapper> constantInput;

if (constantInput && tensorDesc->totalTensorSizeInBytes < c_maxConstNodeDataSize)
if (tensorDesc->totalTensorSizeInBytes < c_maxConstNodeDataSize)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be <=? I presume c_maxConstNodeDataSize is inclusive.

@sophies927 sophies927 added the triage:approved Approved for cherrypicks for release label Feb 7, 2024
YUNQIUGUO pushed a commit that referenced this pull request Feb 8, 2024
### Description
This change
55a6694
didn't take into account external data when unpacking initializer, and
therefore crashes when trying to unpack them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:1.17.1 triage:approved Approved for cherrypicks for release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants