Open tiangexiang opened 1 year ago
Just as a comment to this question, ndim currently doesn't work properly in PyKeops (see https://github.com/getkeops/keops/issues/376). So you should assume c.shape is correct.
To actually solve your question (pbb a lot too late), can you try:
d = c[:, 10:20]
Hi, I am trying to slice a lazy tensor in this way:
However, I encountered an error saying "Starting index is out of bounds" with ndim is actually 1. How can I correctly slice the tensor as the way I expect?
Thank you!