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

Method ToTensor

cpp/src/arrow/record_batch.cc:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

TEST_FFunction · 0.45
TYPED_TEST_PFunction · 0.45
TEST_FFunction · 0.45

Calls 1

RecordBatchToTensorFunction · 0.85

Tested by 3

TEST_FFunction · 0.36
TYPED_TEST_PFunction · 0.36
TEST_FFunction · 0.36