| 651 | } |
| 652 | |
| 653 | Bin* Bin::CreateSparseBin(data_size_t num_data, int num_bin) { |
| 654 | if (num_bin <= 256) { |
| 655 | return new SparseBin<uint8_t>(num_data); |
| 656 | } else if (num_bin <= 65536) { |
| 657 | return new SparseBin<uint16_t>(num_data); |
| 658 | } else { |
| 659 | return new SparseBin<uint32_t>(num_data); |
| 660 | } |
| 661 | } |
| 662 | |
| 663 | } // namespace LightGBM |
nothing calls this directly
no outgoing calls
no test coverage detected