You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We don't have plans to implement support for setting exact strides, just to reorder them (like the stride order primitive does). What were you thinking of?
Hey! So what I was thinking was more about setting exact strides.
However, @IvanYashchuk pointed out to me that this discussion has been held once before. That discussion led to the following conclusion:
[...] we did identify that having a stride semantics in the graph is useful, but it's very hard to do it right and efficiently, without putting unnecessary constraints on backends.
Additionally, there is a comment on jax that I think summarizes enough the possible complexity of having such a feature.
In conclusion, I think it's fair to say that unless there is a stronger need for it, it's better to put this idea aside for now
🚀 Feature
I would like to have Thunder manage stride information to allow for tensor manipulations.
In particular I think the following points need to be discussed:
TensorProxy
?Motivation
This will enable us to add new operators that reshape the tensor using the stride like
torch.as_strided
ortorch.Tensor.unfold
.The text was updated successfully, but these errors were encountered: