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

Function GetSparseTensorMessage

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

Source from the content-addressed store, hash-verified

1105}
1106
1107Result<std::unique_ptr<Message>> GetSparseTensorMessage(const SparseTensor& sparse_tensor,
1108 MemoryPool* pool) {
1109 IpcPayload payload;
1110 RETURN_NOT_OK(GetSparseTensorPayload(sparse_tensor, pool, &payload));
1111 return std::unique_ptr<Message>(
1112 new Message(std::move(payload.metadata), std::move(payload.body_buffers[0])));
1113}
1114
1115int64_t GetPayloadSize(const IpcPayload& payload, const IpcWriteOptions& options) {
1116 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