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