| 542 | } |
| 543 | |
| 544 | Status TensorToSparseCOOTensor(const std::shared_ptr<Tensor>& tensor, |
| 545 | std::shared_ptr<SparseCOOTensor>* out) { |
| 546 | return SparseCOOTensor::Make(*tensor).Value(out); |
| 547 | } |
| 548 | |
| 549 | Status TensorToSparseCSRMatrix(const std::shared_ptr<Tensor>& tensor, |
| 550 | std::shared_ptr<SparseCSRMatrix>* out) { |