Skip to content

Fix Assertion Const Node Tensor Request when Node has value_int Rather than Value #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsmonson
Copy link

@jsmonson jsmonson commented May 1, 2025

This PR adds a check to extract_constant_to_initializer and the FetchConstantTensor function (in pass_util.h) that ensures the constant node actually contains a Tensor (rather than a value_int or some other type). If not checked, this causes an assertion failure when these pass and function are used.

See Issue: #173

…g for a tensor and not another attribute like value_int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant