| 630 | |
| 631 | template <typename DataType> |
| 632 | void CheckTableToTensorRowMajor(const std::shared_ptr<Tensor>& tensor, const int size, |
| 633 | const std::vector<int64_t> shape, |
| 634 | const std::vector<int64_t> strides) { |
| 635 | EXPECT_EQ(size, tensor->size()); |
| 636 | EXPECT_EQ(TypeTraits<DataType>::type_singleton(), tensor->type()); |
| 637 | EXPECT_EQ(shape, tensor->shape()); |
| 638 | EXPECT_EQ(strides, tensor->strides()); |
| 639 | EXPECT_TRUE(tensor->is_row_major()); |
| 640 | EXPECT_FALSE(tensor->is_column_major()); |
| 641 | EXPECT_TRUE(tensor->is_contiguous()); |
| 642 | } |
| 643 | |
| 644 | TEST_F(TestTable, ToTensorSupportedNaN) { |
| 645 | auto f0 = field("f0", float32()); |
nothing calls this directly
no test coverage detected