PyErr_Format(PyExc_TypeError,"`%s' 1D `input` array should have %"PY_FORMAT_SIZE_T"d elements, not %"PY_FORMAT_SIZE_T"d",Py_TYPE(self)->tp_name,self->cxx->getNInputs(),input->shape[0]);
data=numpy.random.rand(100,50)#Doesn't matter if it is ramdom. The average of 1D array (in python) MUST output the same result for the 2D array (in C++)