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
Feature functionality
Allow that tensors have Fortran-style, i.e. column-first, data layout. PyTorch supports this feature now directly via a passable parameter. This issue requires to work through factory functions, the creation of layout conversion calls as well as an investigation if and where auto-conversion between C- and Fortran-style layout needs to happen.
The text was updated successfully, but these errors were encountered:
Just checking if we are on the same page. For ndarrays, order='C' (default, rows first), or order='F' (columns first). So what we're talking about is to allow for a ht.tensor attribute order so that the memory layout of the tensor can be specified (or modified). E.g.:
a = ht.zeros((3,4,5), order='F')
would create a tensor with Fortran-style memory layout. We would then have a strides attribute to check the layout.
I'm not sure about what PyTorch parameter you're referring to. With PyTorch 1.2.0 we can specify the memory layout (they call it memory_format) when creating a torch tensor, but this is with 4d tensors in NCHW order - <batch, channels, width, height> - in mind. It's not what we want. pytorch/pytorch#19092
Feature functionality
Allow that tensors have Fortran-style, i.e. column-first, data layout. PyTorch supports this feature now directly via a passable parameter. This issue requires to work through factory functions, the creation of layout conversion calls as well as an investigation if and where auto-conversion between C- and Fortran-style layout needs to happen.
The text was updated successfully, but these errors were encountered: