| 960 | |
| 961 | template <typename DataType> |
| 962 | void CheckTensorRowMajor(const std::shared_ptr<Tensor>& tensor, const int size, |
| 963 | const std::vector<int64_t> shape, |
| 964 | const std::vector<int64_t> strides) { |
| 965 | EXPECT_EQ(size, tensor->size()); |
| 966 | EXPECT_EQ(TypeTraits<DataType>::type_singleton(), tensor->type()); |
| 967 | EXPECT_EQ(shape, tensor->shape()); |
| 968 | EXPECT_EQ(strides, tensor->strides()); |
| 969 | EXPECT_TRUE(tensor->is_row_major()); |
| 970 | EXPECT_FALSE(tensor->is_column_major()); |
| 971 | EXPECT_TRUE(tensor->is_contiguous()); |
| 972 | } |
| 973 | |
| 974 | TEST_F(TestRecordBatch, ToTensorSupportedNaN) { |
| 975 | const int length = 9; |
nothing calls this directly
no test coverage detected