| 372 | } |
| 373 | |
| 374 | inline ::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 | |
| 392 | inline const org::apache::arrow::flatbuf::Tensor *GetTensor(const void *buf) { |
| 393 | return ::flatbuffers::GetRoot<org::apache::arrow::flatbuf::Tensor>(buf); |
nothing calls this directly
no test coverage detected