| 2561 | } // namespace |
| 2562 | |
| 2563 | Result<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 | |
| 2573 | Result<std::shared_ptr<SparseTensor>> ReadSparseTensorPayload(const IpcPayload& payload) { |
| 2574 | std::shared_ptr<DataType> type; |
nothing calls this directly
no test coverage detected