| 50 | #if GPU_DEBUG > 0 |
| 51 | |
| 52 | void PrintHistograms(HistogramBinEntry* h, size_t size) { |
| 53 | size_t total = 0; |
| 54 | for (size_t i = 0; i < size; ++i) { |
| 55 | printf("%03lu=%9.3g,%9.3g,%7d\t", i, h[i].sum_gradients, h[i].sum_hessians, h[i].cnt); |
| 56 | total += h[i].cnt; |
| 57 | if ((i & 3) == 3) |
| 58 | printf("\n"); |
| 59 | } |
| 60 | printf("\nTotal examples: %lu\n", total); |
| 61 | } |
| 62 | |
| 63 | union Float_t { |
| 64 | int64_t i; |
no outgoing calls
no test coverage detected