DJ_HalfcourtViolation
MModular
•Created by DJ_HalfcourtViolation on 5/12/2024 in #questions
Assigning slice of a tensor to a variable?
As best I can tell there is no direct way to assign a slice of a tensor to a new variable. I am looking for something Python-esque like
But even the official docs show
for
loops iterating over a Tensor to populate a new array. Is there a better way to achieve this? It becomes more of an issue with a larger Tensor where I want to assign multiple variables to different slices.7 replies