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

torch_triu_indices and torch_tril_indices return 0-based index #1169

Open
wangwustat opened this issue May 21, 2024 · 0 comments
Open

torch_triu_indices and torch_tril_indices return 0-based index #1169

wangwustat opened this issue May 21, 2024 · 0 comments

Comments

@wangwustat
Copy link

Dear fellows,

Thanks for your great work.
The functions torch_triu_indices and torch_tril_indices return 0-based index in torch 0.12.0.

For example,

torch_triu_indices(2, 2, offset=1)

returns

torch_tensor 0 1 [ CPULongType{2,1} ]

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

No branches or pull requests

1 participant