| 948 | |
| 949 | template <typename DataType> |
| 950 | void CheckTensor(const std::shared_ptr<Tensor>& tensor, const int size, |
| 951 | const std::vector<int64_t> shape, const std::vector<int64_t> f_strides) { |
| 952 | EXPECT_EQ(size, tensor->size()); |
| 953 | EXPECT_EQ(TypeTraits<DataType>::type_singleton(), tensor->type()); |
| 954 | EXPECT_EQ(shape, tensor->shape()); |
| 955 | EXPECT_EQ(f_strides, tensor->strides()); |
| 956 | EXPECT_FALSE(tensor->is_row_major()); |
| 957 | EXPECT_TRUE(tensor->is_column_major()); |
| 958 | EXPECT_TRUE(tensor->is_contiguous()); |
| 959 | } |
| 960 | |
| 961 | template <typename DataType> |
| 962 | void CheckTensorRowMajor(const std::shared_ptr<Tensor>& tensor, const int size, |
nothing calls this directly
no test coverage detected