| 2578 | } // namespace |
| 2579 | |
| 2580 | Result<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 | |
| 2590 | Result<std::shared_ptr<SparseTensor>> ReadSparseTensorPayload(const IpcPayload& payload) { |
| 2591 | std::shared_ptr<DataType> type; |
nothing calls this directly
no test coverage detected