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 TTNN NOperand trait verify method visibility. #2334

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

Conversation

sdjordjevicTT
Copy link
Contributor

Ticket

Closes #2333

Problem description

TTNN trait NOperandTTNN fails to call verifyTrait method:
https://github.com/tenstorrent/tt-mlir/blob/7bc75fc277ac11c6c0b2cfaeba25ad3d42af04be/include/ttmlir/Dialect/TTNN/IR/TTNNTraits.h#L76C7-L76C19

The issue is the visibility of the verifyTrait method, in the current code, it is private, hence it can't be called by the framework.

What's changed

Changed the visibility of verifyTrait from private to public, so the verifyTrait method is executed. Added tests to verify this behaviour.

Checklist

  • New/Existing tests provide coverage for changes

Copy link
Contributor

@azecevicTT azecevicTT left a comment

Choose a reason for hiding this comment

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

Good catch!

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.

[TTNN] NOperandTTNN trait fails to call verifyTrait
3 participants