Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy moveaxis function Example

# welcome to softhunt.net
# Python program explaining
# numpy.moveaxis() function

# importing numpy as np
import numpy as np

arr = np.zeros((4, 3, 2, 1))

softhunt = np.moveaxis(arr, 0, -1).shape

print (softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #moveaxis #function #Example
ADD COMMENT
Topic
Name
3+6 =