While creating 3-D Array or tensor in Numpy , for eg ,
T = np.ones((5,5,3) , dtype = ‘uint8’) ,
does the first dimension represents depth , followed by rows and columns ?
While creating 3-D Array or tensor in Numpy , for eg ,
T = np.ones((5,5,3) , dtype = ‘uint8’) ,
does the first dimension represents depth , followed by rows and columns ?
Hey @gautam75, depth is represented by the last dimension in case of np.ones((h,w,d), dtype= 'uint8')
.
I hope this clears your doubt !
Please mark the doubt as resolved in your doubts section !
Happy Learning !
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.