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

Function ReadSparseTensorBodyBufferCount

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

Source from the content-addressed store, hash-verified

2561} // namespace
2562
2563Result<size_t> ReadSparseTensorBodyBufferCount(const Buffer& metadata) {
2564 SparseTensorFormat::type format_id{};
2565 std::vector<int64_t> shape;
2566
2567 RETURN_NOT_OK(internal::GetSparseTensorMetadata(metadata, nullptr, &shape, nullptr,
2568 nullptr, &format_id));
2569
2570 return GetSparseTensorBodyBufferCount(format_id, static_cast<size_t>(shape.size()));
2571}
2572
2573Result<std::shared_ptr<SparseTensor>> ReadSparseTensorPayload(const IpcPayload& payload) {
2574 std::shared_ptr<DataType> type;

Callers

nothing calls this directly

Calls 3

GetSparseTensorMetadataFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected