* @brief Make a copy of self for DMatrix to describe how its existing index was generated. */
| 337 | * @brief Make a copy of self for DMatrix to describe how its existing index was generated. |
| 338 | */ |
| 339 | [[nodiscard]] BatchParam MakeCache() const { |
| 340 | auto p = *this; |
| 341 | // These parameters have nothing to do with how the gradient index was generated in the |
| 342 | // first place. |
| 343 | p.regen = false; |
| 344 | p.forbid_regen = false; |
| 345 | return p; |
| 346 | } |
| 347 | }; |
| 348 | |
| 349 | struct HostSparsePageView { |
no outgoing calls
no test coverage detected