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

Method ToTensor

cpp/src/arrow/table.cc:350–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350Result<std::shared_ptr<Tensor>> Table::ToTensor(bool null_to_nan, bool row_major,
351 MemoryPool* pool) const {
352 std::shared_ptr<Tensor> tensor;
353 ARROW_RETURN_NOT_OK(
354 internal::TableToTensor(*this, null_to_nan, row_major, pool, &tensor));
355 return tensor;
356}
357
358std::vector<std::string> Table::ColumnNames() const {
359 std::vector<std::string> names(num_columns());

Callers 4

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TYPED_TEST_PFunction · 0.45
TEST_FFunction · 0.45

Calls 1

TableToTensorFunction · 0.85

Tested by 4

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TYPED_TEST_PFunction · 0.36
TEST_FFunction · 0.36