all AI news
rot90() and roll() in PyTorch
April 24, 2024, 4:32 a.m. | Super Kai (Kazuya Ito)
DEV Community dev.to
rot90() can rotate a 2D or more D tensor by 90 degrees as shown below:
*Memos:
rot90() can be used with torch or a tensor.- The tensor of zero or more integers, floating-point numbers, complex numbers or boolean values can be used.
- The 2nd argument(int) with torch or the 1st argument(int) with a tensor is k(Optional).
- The 3rd argument(tuple of int or list of int) with torch or the 2nd argument(tuple of int or list of int) with a tensor …
function integers memos numbers pytorch roll rot90 tensor torch values
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne