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
"changing" layouts can mean a lot of things. It could either require physical data movement or could be a purely logical transformation of the tensor's view. if it is the former, you have to set up a copy and do the transpose yourself. if it is a logical reinterpretation of the view then composition should take care of it.
auto target = make_layout(make_shape(1,6,4));
composition(A, target);
I can not find a proper method to change the layout of a tensor.
if I have a tensor like:
I don't know how to merge the axis 1 and axis 2(axis start with 0), and get a tensor like B:[1, 6, 4].
Could you give me an example for doing so?
The text was updated successfully, but these errors were encountered: