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

Function CreateTensorDirect

cpp/src/generated/Tensor_generated.h:374–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374inline ::flatbuffers::Offset<Tensor> CreateTensorDirect(
375 ::flatbuffers::FlatBufferBuilder &_fbb,
376 org::apache::arrow::flatbuf::Type type_type = org::apache::arrow::flatbuf::Type_NONE,
377 ::flatbuffers::Offset<void> type = 0,
378 const std::vector<::flatbuffers::Offset<org::apache::arrow::flatbuf::TensorDim>> *shape = nullptr,
379 const std::vector<int64_t> *strides = nullptr,
380 const org::apache::arrow::flatbuf::Buffer *data = nullptr) {
381 auto shape__ = shape ? _fbb.CreateVector<::flatbuffers::Offset<org::apache::arrow::flatbuf::TensorDim>>(*shape) : 0;
382 auto strides__ = strides ? _fbb.CreateVector<int64_t>(*strides) : 0;
383 return org::apache::arrow::flatbuf::CreateTensor(
384 _fbb,
385 type_type,
386 type,
387 shape__,
388 strides__,
389 data);
390}
391
392inline const org::apache::arrow::flatbuf::Tensor *GetTensor(const void *buf) {
393 return ::flatbuffers::GetRoot<org::apache::arrow::flatbuf::Tensor>(buf);

Callers

nothing calls this directly

Calls 1

CreateTensorFunction · 0.85

Tested by

no test coverage detected