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

Function ReadSparseTensorBodyBufferCount

cpp/src/arrow/ipc/reader.cc:2580–2588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2578} // namespace
2579
2580Result<size_t> ReadSparseTensorBodyBufferCount(const Buffer& metadata) {
2581 SparseTensorFormat::type format_id{};
2582 std::vector<int64_t> shape;
2583
2584 RETURN_NOT_OK(internal::GetSparseTensorMetadata(metadata, nullptr, &shape, nullptr,
2585 nullptr, &format_id));
2586
2587 return GetSparseTensorBodyBufferCount(format_id, static_cast<size_t>(shape.size()));
2588}
2589
2590Result<std::shared_ptr<SparseTensor>> ReadSparseTensorPayload(const IpcPayload& payload) {
2591 std::shared_ptr<DataType> type;

Callers

nothing calls this directly

Calls 3

GetSparseTensorMetadataFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected