Initial value numpy array before starting the function in python
问题 I want to put data of a image in a numpy array, but every time I get the error ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 2 dimension(s) and the array at index 1 has 4 dimension(s) or I get that my array is zero-dimensional and that's also not right. How should I initialise my variable before the function? Here some code: from extra_keras_datasets import emnist from tensorflow.keras.models import Sequential from tensorflow.keras.layers