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

Function CheckTableToTensor

cpp/src/arrow/table_test.cc:619–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617
618template <typename DataType>
619void CheckTableToTensor(const std::shared_ptr<Tensor>& tensor, const int size,
620 const std::vector<int64_t> shape,
621 const std::vector<int64_t> f_strides) {
622 EXPECT_EQ(size, tensor->size());
623 EXPECT_EQ(TypeTraits<DataType>::type_singleton(), tensor->type());
624 EXPECT_EQ(shape, tensor->shape());
625 EXPECT_EQ(f_strides, tensor->strides());
626 EXPECT_FALSE(tensor->is_row_major());
627 EXPECT_TRUE(tensor->is_column_major());
628 EXPECT_TRUE(tensor->is_contiguous());
629}
630
631template <typename DataType>
632void CheckTableToTensorRowMajor(const std::shared_ptr<Tensor>& tensor, const int size,

Callers

nothing calls this directly

Calls 8

stridesMethod · 0.80
is_row_majorMethod · 0.80
is_column_majorMethod · 0.80
is_contiguousMethod · 0.80
type_singletonFunction · 0.70
sizeMethod · 0.45
typeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected