April 5, 2024, 6:53 a.m. | Super Kai (Kazuya Ito)

DEV Community dev.to

permute() or movedim() can permute the dimensions of a 1D or more D tensor without losing data as shown below:


*Memos:




  • permute() and movedim() can be used both from torch and a tensor.

  • The 2nd argument of permute() is one or more dimensions with torch.

  • The 1st argument of permute() is one or more dimensions with a tensor.

  • The 2nd argument of movedim() is one or more dimensions. These must be unique with torch.

  • The 1st argument of movedim() is …

data dimensions memos pytorch tensor torch

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US