MCPcopy Create free account
hub / github.com/apache/arrow / TensorToSparseCOOTensor

Function TensorToSparseCOOTensor

python/pyarrow/src/arrow/python/numpy_convert.cc:544–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
ValueMethod · 0.45

Tested by

no test coverage detected