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

Merged
merged 3 commits into from
Jan 9, 2025
Merged

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.

@TobyRoseman
Copy link
Collaborator

@fukatani - In order to get a clean CI run, you need to rebase on top of the latest main. Please do that, then I'll restart the CI.

@fukatani
Copy link
Contributor Author

fukatani commented Jan 8, 2025

@TobyRoseman
Sorry for late response.
I addressed your comment and merged latest master.

@TobyRoseman
Copy link
Collaborator

@TobyRoseman TobyRoseman merged commit 8dcc22b into apple:main Jan 9, 2025
@TobyRoseman
Copy link
Collaborator

Thanks @fukatani

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