Skip to content

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
i-evi committed Oct 16, 2020
1 parent 9b9ca93 commit 1bf1346
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions src/cc_cpufn.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,10 @@ void cc_cpu_activation_softmax(void *inp, cc_int32 elems, cc_dtype dt)
#define CC_CPU_MAX_POOL2D_CASE(DT, dtype) \
case DT: \
for (i = 0; i < o_y; ++i) { \
for (j = 0; j < o_x; ++j) \
{ \
for (j = 0; j < o_x; ++j) { \
*(dtype*)v_max = *((dtype*)inp + s * i * x + s * j); \
for (k = 0; k < s; ++k) \
{ \
for (l = 0; l < s; ++l) \
{ \
for (k = 0; k < s; ++k) { \
for (l = 0; l < s; ++l) { \
curr = (dtype*)inp + \
(s * i + k) * x + j * s + l; \
*(dtype*)v_max = *((dtype*)curr) > \
Expand Down Expand Up @@ -272,13 +269,10 @@ void cc_cpu_max_pool2d(const void *inp, void *oup,
#define CC_CPU_AVG_POOL2D_CASE(DT, dtype) \
case DT: \
for (i = 0; i < o_y; ++i) { \
for (j = 0; j < o_x; ++j) \
{ \
for (j = 0; j < o_x; ++j) { \
memset(v_avg, 0, cc_dtype_size(dt)); \
for (k = 0; k < s; ++k) \
{ \
for (l = 0; l < s; ++l) \
{ \
for (k = 0; k < s; ++k) { \
for (l = 0; l < s; ++l) { \
curr = (dtype*)inp + \
(s * i + k) * x + j * s + l; \
*(dtype*)v_avg += *((dtype*)curr); \
Expand Down
2 changes: 1 addition & 1 deletion src/global_fn_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ void cc_ecpu_conv2d_wrap(const void *in, void *out, cc_int32 ix,
break;
}
}
#endif /* ENABLE_ECPUFN */
#endif /* ENABLE_ECPUFN */

0 comments on commit 1bf1346

Please sign in to comment.