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

Method ToTensor

cpp/src/arrow/record_batch.cc:296–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296Result<std::shared_ptr<Tensor>> RecordBatch::ToTensor(bool null_to_nan, bool row_major,
297 MemoryPool* pool) const {
298 std::shared_ptr<Tensor> tensor;
299 ARROW_RETURN_NOT_OK(
300 internal::RecordBatchToTensor(*this, null_to_nan, row_major, pool, &tensor));
301 return tensor;
302}
303
304const std::string& RecordBatch::column_name(int i) const {
305 return schema_->field(i)->name();

Callers

nothing calls this directly

Calls 1

RecordBatchToTensorFunction · 0.85

Tested by

no test coverage detected