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

Function WriteTensorHeader

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

Source from the content-addressed store, hash-verified

867namespace {
868
869Status WriteTensorHeader(const Tensor& tensor, io::OutputStream* dst,
870 int32_t* metadata_length) {
871 IpcWriteOptions options;
872 options.alignment = kTensorAlignment;
873 std::shared_ptr<Buffer> metadata;
874 ARROW_ASSIGN_OR_RAISE(metadata, internal::WriteTensorMessage(tensor, 0, options));
875 return WriteMessage(*metadata, options, dst, metadata_length);
876}
877
878Status WriteStridedTensorData(int dim_index, int64_t offset, int elem_size,
879 const Tensor& tensor, uint8_t* scratch_space,

Callers 1

WriteTensorFunction · 0.85

Calls 3

WriteTensorMessageFunction · 0.85
WriteMessageFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.70

Tested by

no test coverage detected