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

Function ReadSparseTensorBodyBufferCount

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

Source from the content-addressed store, hash-verified

2502} // namespace
2503
2504Result<size_t> ReadSparseTensorBodyBufferCount(const Buffer& metadata) {
2505 SparseTensorFormat::type format_id{};
2506 std::vector<int64_t> shape;
2507
2508 RETURN_NOT_OK(internal::GetSparseTensorMetadata(metadata, nullptr, &shape, nullptr,
2509 nullptr, &format_id));
2510
2511 return GetSparseTensorBodyBufferCount(format_id, static_cast<size_t>(shape.size()));
2512}
2513
2514Result<std::shared_ptr<SparseTensor>> ReadSparseTensorPayload(const IpcPayload& payload) {
2515 std::shared_ptr<DataType> type;

Callers

nothing calls this directly

Calls 3

GetSparseTensorMetadataFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected