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

[hard] add masked.median #8016

Closed
wants to merge 2 commits into from
Closed

[hard] add masked.median #8016

wants to merge 2 commits into from

Conversation

ManfeiBai
Copy link
Collaborator

@ManfeiBai ManfeiBai commented Sep 15, 2024

pytest test failed with error: RuntimeError: Object of type 'XLATensor2' is not an instance of 'sequence' at current branch

@ManfeiBai
Copy link
Collaborator Author

masked.median is decomposed with nanmedian.dim, and nanmedian.dim will return two result according to https://pytorch.org/docs/stable/generated/torch.nanmedian.html, but my logic only return one value,

so the logic of nanmedian.dim need a sequence of tensor return, when I only return one tensor, it shows error RuntimeError: Object of type 'XLATensor2' is not an instance of 'sequence'

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.

1 participant