Skip to content

[Relax] Fix bug in convert_layout pass#17541

Merged
Hzfengsy merged 1 commit intoapache:mainfrom
HongHongHongL:fix_convert_layout_bug
Nov 23, 2024
Merged

[Relax] Fix bug in convert_layout pass#17541
Hzfengsy merged 1 commit intoapache:mainfrom
HongHongHongL:fix_convert_layout_bug

Conversation

@HongHongHongL
Copy link
Contributor

When using layouts[0].LeafValue()->layout->name, I got a segment fault when layouts[0].LeafValue()->layout is __undef__. layouts[0].LeafValue()->layout.name() can judge and handle this case.

@Hzfengsy Hzfengsy merged commit 4d99ec5 into apache:main Nov 23, 2024
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
fix segment fault when get undef layout
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.

3 participants