Pls no asserts. REQUIRE(num_labels>=0, "Number of labels (%d) must be non-negative", num_labels)