\brief Make SparseCSFIndex from raw properties
| 410 | |
| 411 | /// \brief Make SparseCSFIndex from raw properties |
| 412 | static Result<std::shared_ptr<SparseCSFIndex>> Make( |
| 413 | const std::shared_ptr<DataType>& indices_type, |
| 414 | const std::vector<int64_t>& indices_shapes, const std::vector<int64_t>& axis_order, |
| 415 | const std::vector<std::shared_ptr<Buffer>>& indptr_data, |
| 416 | const std::vector<std::shared_ptr<Buffer>>& indices_data) { |
| 417 | return Make(indices_type, indices_type, indices_shapes, axis_order, indptr_data, |
| 418 | indices_data); |
| 419 | } |
| 420 | |
| 421 | /// \brief Construct SparseCSFIndex from two index vectors |
| 422 | explicit SparseCSFIndex(const std::vector<std::shared_ptr<Tensor>>& indptr, |