dotnet / dotnet/TorchSharp

Ranges implementation

Open
#1,266 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.9k
Forks
228
PR merge metrics
No merged PRs in 30d

Description

Hello,
Hope this not an error with my code...
So I really like to use ranges. Lets assume tensor of 3 dimensions.
I can do x[some tensor] ....
I can do x[x<=2] ....
I can do x[..int,..,..] .....
What I cannot do is x[..,some tensor,..] ... where some tensor are indices or booleans.
Is where any way to implement this. Would be really cool because this often appears in pythonic code...

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.