| 617 | |
| 618 | template <typename DataType> |
| 619 | void 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 | |
| 631 | template <typename DataType> |
| 632 | void CheckTableToTensorRowMajor(const std::shared_ptr<Tensor>& tensor, const int size, |
nothing calls this directly
no test coverage detected