| 153 | } |
| 154 | |
| 155 | bool IsTensorStridesColumnMajor(const std::shared_ptr<DataType>& type, |
| 156 | const std::vector<int64_t>& shape, |
| 157 | const std::vector<int64_t>& strides) { |
| 158 | std::vector<int64_t> f_strides; |
| 159 | const auto& fw_type = checked_cast<const FixedWidthType&>(*type); |
| 160 | if (internal::ComputeColumnMajorStrides(fw_type, shape, &f_strides).ok()) { |
| 161 | return strides == f_strides; |
| 162 | } else { |
| 163 | return false; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | Status CheckTensorValidity(const std::shared_ptr<DataType>& type, |
| 168 | const std::shared_ptr<Buffer>& data, |
no test coverage detected