shape=(4,8) bytes_per_element=4 print(shape[0]*shape[1]*bytes_per_element)