Skip to content

[QST] What's the difference between make_fragment_like and make_tensor_like? #2228

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

Open
iryanin opened this issue Apr 7, 2025 · 3 comments

Comments

@iryanin
Copy link

iryanin commented Apr 7, 2025

What is your question?
Since make_fragment_like and make_tensor_like both creates tensor resided in registers, what's the difference between them?

@irasin
Copy link
Contributor

irasin commented Apr 17, 2025

the result layout is different

@hwu36
Copy link
Collaborator

hwu36 commented Apr 30, 2025

@Junkai-Wu

@Junkai-Wu
Copy link
Contributor

Their output layout is different. Please check their definitions:
make_fragment_like: https://github.com/NVIDIA/cutlass/blob/main/include/cute/layout.hpp#L455
make_tensor_like: https://github.com/NVIDIA/cutlass/blob/main/include/cute/tensor_impl.hpp#L424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants