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

Support bool type for torch triu. #2421

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

Conversation

fukatani
Copy link
Contributor

No description provided.

Copy link
Collaborator

@TobyRoseman TobyRoseman left a comment

Choose a reason for hiding this comment

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

Thanks for the enhancement. Code looks good. One minor comment.

CI: https://gitlab.com/coremltools1/coremltools/-/pipelines/1609408368

params_dict = {}
if diagonal is not None:
params_dict["diagonal"] = diagonal
model = ModuleWrapper(torch.triu, params_dict)
input_data = torch.randn(shape)
Copy link
Collaborator

@TobyRoseman TobyRoseman Jan 2, 2025

Choose a reason for hiding this comment

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

Doesn't really make sense to populate this only to have it usually overriden. I'd put this line in an else-block.

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