Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to do channel first in pytorch

X_train = torch.rand(708, 256, 3)
X_train = X_train.permute(2, 0, 1)
X_train.shape
# => torch.Size([3, 708, 256])
Comment

PREVIOUS NEXT
Code Example
Python :: python poner en mayusculas 
Python :: discord python bot require one of two roles for command 
Python :: pygame draw rect syntax 
Python :: fstring number format python 
Python :: python armstrong number 
Python :: create spark dataframe in python 
Python :: drop columns pyspark 
Python :: can you edit string.punctuation 
Python :: how to insert sound in python 
Python :: md5 hash python 
Python :: how to set index pandas 
Python :: pyqt display math 
Python :: pythondatetime cheatsheet 
Python :: django expressionwrapper example 
Python :: sklearn accuracy 
Python :: kill turtle 
Python :: python exceute 60 records per minute counter 
Python :: plt plot grid on 
Python :: python last element of list 
Python :: space to underscore python 
Python :: how to get rid of all null values in array python 
Python :: python read live radio 
Python :: python iterate letters 
Python :: import a txt file into python 
Python :: random word py 
Python :: sns legend outside 
Python :: Python find inverse of matrix 
Python :: time counter in python 
Python :: how to convert png to pdf with python 
Python :: Python program to print odd numbers in a list 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =