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