Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy expand_dims

y = np.expand_dims(x, axis=(2, 0))
>>> y
array([[[1],
        [2]]])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy
ADD COMMENT
Topic
Name
4+3 =