MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / CreateDenseBin

Method CreateDenseBin

python-package/compile/src/io/bin.cpp:641–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639 }
640
641 Bin* Bin::CreateDenseBin(data_size_t num_data, int num_bin) {
642 if (num_bin <= 16) {
643 return new Dense4bitsBin(num_data);
644 } else if (num_bin <= 256) {
645 return new DenseBin<uint8_t>(num_data);
646 } else if (num_bin <= 65536) {
647 return new DenseBin<uint16_t>(num_data);
648 } else {
649 return new DenseBin<uint32_t>(num_data);
650 }
651 }
652
653 Bin* Bin::CreateSparseBin(data_size_t num_data, int num_bin) {
654 if (num_bin <= 256) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected