File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1766,15 +1766,15 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev,
17661766            return  true ;
17671767        }
17681768        case  GGML_OP_POOL_2D: {
1769-                  const  int32_t  * opts = (const  int32_t  *) op->op_params ;
1770-                  const  int        k0   = opts[1 ];
1771-                  const  int        k1   = opts[2 ];
1772-                  const  int        p0   = opts[5 ];
1773-                  const  int        p1   = opts[6 ];
1774-                  //  value of paddingH should be at most half of kernelH
1775-                  //  value of paddingW should be at most half of kernelW
1776-                  return  (p0 <= (k0 / 2 )) && (p1 <= (k1 / 2 ));
1777-              }
1769+             const  int32_t  * opts = (const  int32_t  *) op->op_params ;
1770+             const  int        k0   = opts[1 ];
1771+             const  int        k1   = opts[2 ];
1772+             const  int        p0   = opts[5 ];
1773+             const  int        p1   = opts[6 ];
1774+             //  value of paddingH should be at most half of kernelH
1775+             //  value of paddingW should be at most half of kernelW
1776+             return  (p0 <= (k0 / 2 )) && (p1 <= (k1 / 2 ));
1777+         }
17781778        case  GGML_OP_DUP:
17791779        case  GGML_OP_IM2COL:
17801780        case  GGML_OP_CONCAT:
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments