| 2502 | } // namespace |
| 2503 | |
| 2504 | Result<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 | |
| 2514 | Result<std::shared_ptr<SparseTensor>> ReadSparseTensorPayload(const IpcPayload& payload) { |
| 2515 | std::shared_ptr<DataType> type; |
nothing calls this directly
no test coverage detected