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

Function GetSparseTensorMessage

cpp/src/arrow/ipc/writer.cc:1100–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100Result<std::unique_ptr<Message>> GetSparseTensorMessage(const SparseTensor& sparse_tensor,
1101 MemoryPool* pool) {
1102 IpcPayload payload;
1103 RETURN_NOT_OK(GetSparseTensorPayload(sparse_tensor, pool, &payload));
1104 return std::unique_ptr<Message>(
1105 new Message(std::move(payload.metadata), std::move(payload.body_buffers[0])));
1106}
1107
1108int64_t GetPayloadSize(const IpcPayload& payload, const IpcWriteOptions& options) {
1109 const int32_t prefix_size = options.write_legacy_ipc_format ? 4 : 8;

Callers

nothing calls this directly

Calls 1

GetSparseTensorPayloadFunction · 0.85

Tested by

no test coverage detected