MCPcopy Create free account
hub / github.com/apache/arrow / IsTensorStridesContiguous

Function IsTensorStridesContiguous

cpp/src/arrow/tensor.cc:201–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199namespace internal {
200
201bool IsTensorStridesContiguous(const std::shared_ptr<DataType>& type,
202 const std::vector<int64_t>& shape,
203 const std::vector<int64_t>& strides) {
204 return IsTensorStridesRowMajor(type, shape, strides) ||
205 IsTensorStridesColumnMajor(type, shape, strides);
206}
207
208Status ValidateTensorParameters(const std::shared_ptr<DataType>& type,
209 const std::shared_ptr<Buffer>& data,

Callers 2

is_contiguousMethod · 0.85

Calls 2

IsTensorStridesRowMajorFunction · 0.85

Tested by

no test coverage detected