Skip to content

Commit 28a6f81

Browse files
committed
CANN: format
1 parent ef2120f commit 28a6f81

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ggml/src/ggml-cann/ggml-cann.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)