Skip to content

Commit 7e971b0

Browse files
Update
[ghstack-poisoned]
2 parents 7e11615 + ca5f1e5 commit 7e971b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backends/apple/metal/runtime/shims/utils.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ std::vector<executorch::aten::StridesType> convert_strides_to_vector(
6565
std::vector<executorch::aten::StridesType> strides(ndim);
6666

6767
if (strides_ptr != nullptr) {
68-
// Use provided strides. it is ok if provided strides here is not contiguous
69-
// strides since it will be used internally in CUDA delegate.
68+
// Use provided strides.
7069
for (int64_t i = 0; i < ndim; i++) {
7170
strides[i] = static_cast<executorch::aten::StridesType>(strides_ptr[i]);
7271
}
7372
} else {
74-
// Calculate strides from sizes using ExecutorTorch's algorithm
73+
// Calculate strides from sizes.
7574
if (ndim > 0) {
7675
strides[ndim - 1] = static_cast<executorch::aten::StridesType>(
7776
1); // Last dimension has stride 1

0 commit comments

Comments
 (0)