Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
i-evi committed Sep 25, 2020
1 parent dda72a0 commit f11ca88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions demo/lenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ int main(int argc, const char *argv[])
/* Parameters */
cc_tensor_t *conv1_w, *conv1_b,
*conv2_w, *conv2_b, *fc1_w, *fc1_b, *fc2_w, *fc2_b;
cc_int32 shape_conv1_w[] = {5, 5, 1, 32, 0};
cc_int32 shape_conv1_w[] = {32, 1, 5, 5, 0};
cc_int32 shape_conv1_b[] = {32, 0};
cc_int32 shape_conv2_w[] = {5, 5, 32, 64, 0};
cc_int32 shape_conv2_w[] = {64, 32, 5, 5, 0};
cc_int32 shape_conv2_b[] = {64, 0};
cc_int32 shape_flat[] = {-1, 1, 1, 0};
cc_int32 shape_fc1_w[] = {1, 1, 3136, 128, 0};
cc_int32 shape_fc1_w[] = {128, 3136, 1, 1, 0};
cc_int32 shape_fc1_b[] = {128, 0};
cc_int32 shape_fc2_w[] = {1, 1, 128, 10, 0};
cc_int32 shape_fc2_w[] = {10, 128, 1, 1, 0};
cc_int32 shape_fc2_b[] = {10, 0};

arg_parser(argc, (char**)argv);
Expand Down
8 changes: 4 additions & 4 deletions demo/lenet_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ int main(int argc, const char *argv[])
{
cc_int32 i = 0;
char filepath[256];
cc_int32 shape_conv1_w[] = {5, 5, 1, 32, 0};
cc_int32 shape_conv1_w[] = {32, 1, 5, 5, 0};
cc_int32 shape_conv1_b[] = {32, 0};
cc_int32 shape_conv2_w[] = {5, 5, 32, 64, 0};
cc_int32 shape_conv2_w[] = {64, 32, 5, 5, 0};
cc_int32 shape_conv2_b[] = {64, 0};
cc_int32 shape_fc1_w[] = {1, 1, 3136, 128, 0};
cc_int32 shape_fc1_w[] = {128, 3136, 1, 1, 0};
cc_int32 shape_fc1_b[] = {128, 0};
cc_int32 shape_fc2_w[] = {1, 1, 128, 10, 0};
cc_int32 shape_fc2_w[] = {10, 128, 1, 1, 0};
cc_int32 shape_fc2_b[] = {10, 0};

arg_parser(argc, (char**)argv);
Expand Down
4 changes: 2 additions & 2 deletions src/cc_conv2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#define CC_CONV2D_PAD_NAME_SURFFIX "_pad"

enum cc_conv2d_kernel {
CC_CONV2D_KERNEL_O,
CC_CONV2D_KERNEL_I,
CC_CONV2D_KERNEL_H,
CC_CONV2D_KERNEL_W,
CC_CONV2D_KERNEL_I,
CC_CONV2D_KERNEL_O,
CC_CONV2D_KERNEL_DIM
};

Expand Down

0 comments on commit f11ca88

Please sign in to comment.