62throw std::invalid_argument("For input '"+p.first+"' length not compatible with model. Expect a multiple of "+std::to_string(n)+", got "+std::to_string(p.second.size()));
63 }
64if ( p.second.size()!=(n_batches*n)){
65throw std::invalid_argument("Number of batches not compatible with length of vector");