Skip to content
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

Fixing logic for biasType retrieval in the event there is no bias input #597

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

LPanosTT
Copy link
Contributor

@LPanosTT LPanosTT commented Sep 3, 2024

The original method of retrieving the bias:

llvm::dyn_cast_or_null<::mlir::RankedTensorType>(getBias().getType());

resulted in a segmentation fault because getBias() itself would return an incomplete object. Thus, getBias().getType() would attempt to dereference a nullptr at some point.

@LPanosTT LPanosTT merged commit 7b5de3c into main Sep 4, 2024
13 checks passed
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.

2 participants