Issue
I basically want to initialize an empty 6-tensor, like this:
a = np.array([[[[[[]]]]]])
Is there a better way than writing the brackets explicitly?
Solution
For example, to create a new array of 2x3, filled with zeros, use: numpy.zeros(shape=(2,3))
Answered By - avip
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.