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

Function WriteSparseTensor

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

Source from the content-addressed store, hash-verified

1082} // namespace internal
1083
1084Status WriteSparseTensor(const SparseTensor& sparse_tensor, io::OutputStream* dst,
1085 int32_t* metadata_length, int64_t* body_length) {
1086 IpcPayload payload;
1087 internal::SparseTensorSerializer writer(0, &payload);
1088 RETURN_NOT_OK(writer.Assemble(sparse_tensor));
1089
1090 *body_length = payload.body_length;
1091 return WriteIpcPayload(payload, IpcWriteOptions::Defaults(), dst, metadata_length);
1092}
1093
1094Status GetSparseTensorPayload(const SparseTensor& sparse_tensor, MemoryPool* pool,
1095 IpcPayload* out) {

Calls 3

WriteIpcPayloadFunction · 0.85
DefaultsFunction · 0.50
AssembleMethod · 0.45