Numpy array: sequence too large
sequence too large
error means that you are creating a multidimension array that has a dimension larger than 32. For example: np.empty([1]*33)
will raise this error.
Are you sure you want to create >32 dimension array? If you want to create an empty array the same shape as model[MN][i]
, you should use: empty_like()