File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed 
backends/apple/metal/runtime/shims Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments