-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c775d49
commit 3317645
Showing
1,624 changed files
with
360,760 additions
and
25,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,47 @@ | ||
objects += ${NN2_ROOT}/source/c906_opt/abs.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/add.o | ||
objects += ${NN2_ROOT}/source/c906_opt/sub.o | ||
objects += ${NN2_ROOT}/source/c906_opt/mul.o | ||
objects += ${NN2_ROOT}/source/c906_opt/minimum.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/broadcast_to.o | ||
objects += ${NN2_ROOT}/source/c906_opt/clip.o | ||
objects += ${NN2_ROOT}/source/c906_opt/concat.o | ||
objects += ${NN2_ROOT}/source/c906_opt/split.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_relu.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/fullyconnected.o | ||
objects += ${NN2_ROOT}/source/c906_opt/maxpool.o | ||
objects += ${NN2_ROOT}/source/c906_opt/global_maxpool.o | ||
objects += ${NN2_ROOT}/source/c906_opt/avgpool.o | ||
objects += ${NN2_ROOT}/source/c906_opt/global_avgpool.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/pad.o | ||
objects += ${NN2_ROOT}/source/c906_opt/prelu.o | ||
objects += ${NN2_ROOT}/source/c906_opt/relu.o | ||
objects += ${NN2_ROOT}/source/c906_opt/relu1.o | ||
objects += ${NN2_ROOT}/source/c906_opt/relu6.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/leaky_relu.o | ||
objects += ${NN2_ROOT}/source/c906_opt/utils.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/setup.o | ||
|
||
objects += ${NN2_ROOT}/source/c906_opt/sgemm.o | ||
objects += ${NN2_ROOT}/source/c906_opt/gemm_fp16.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_1x1.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_1x1_fp16.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_3x3.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_3x3_fp16.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_sgemm.o | ||
objects += ${NN2_ROOT}/source/c906_opt/convolution_gemm_fp16.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_3x3.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_3x3_fp16.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_3x3_pack4.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_3x3_pack8_fp16.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_5x5.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_relu_3x3.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_relu_3x3_pack4.o | ||
objects += ${NN2_ROOT}/source/c906_opt/depthwise_convolution_relu_5x5.o |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CROSS_COMPILE ?= csky-abiv2-elf- | ||
CC = $(CROSS_COMPILE)gcc | ||
AR = $(CROSS_COMPILE)ar | ||
|
||
CFLAGS += -ffunction-sections -fdata-sections -Wl,--gc-sections | ||
INCLUDE = -I../../include/include_xt800/dsp_include/ -I../../include/include_xt800/csi_core_include/ -I../../include/include_xt800/nn_include | ||
INCLUDE += -I../../include | ||
|
||
all: nn2_e804 | ||
|
||
include nn2_dsp2.objs | ||
include ../nn2.objs | ||
include ../nn2_ref/nn2.objs | ||
|
||
nn2_e804: $(objects) | ||
$(AR) rcs $(INSTALL_DIR)/$(DSP_LIB) $^ | ||
|
||
%.o: %.c | ||
$(CC) -c $(CFLAGS) $(INCLUDE) $(MACRO) $(ENDIAN) $< -o $@ | ||
%.o: %.S | ||
$(CC) -c $(CFLAGS) $(INCLUDE) $(MACRO) $(ENDIAN) $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#activation | ||
objects += ${NN2_ROOT}/source/e804_opt/activation/csi_xt800p_nn_activations_q15.o | ||
objects += ${NN2_ROOT}/source/e804_opt/activation/csi_xt800p_nn_activations_q7.o | ||
objects += ${NN2_ROOT}/source/e804_opt/activation/csi_xt800p_relu_q15.o | ||
objects += ${NN2_ROOT}/source/e804_opt/activation/csi_xt800p_relu_q7.o | ||
|
||
#convolution | ||
objects += ${NN2_ROOT}/source/e804_opt/convolution/csi_xt800p_convolve_1x1_HWC_q7_fast.o | ||
objects += ${NN2_ROOT}/source/e804_opt/convolution/csi_xt800p_convolve_HWC_q15_basic.o | ||
objects += ${NN2_ROOT}/source/e804_opt/convolution/csi_xt800p_convolve_HWC_q7_RGB.o | ||
objects += ${NN2_ROOT}/source/e804_opt/convolution/csi_xt800p_convolve_HWC_q7_basic.o | ||
objects += ${NN2_ROOT}/source/e804_opt/convolution/csi_xt800p_depthwise_separable_conv_HWC_q7.o | ||
|
||
#fully-connect | ||
objects += ${NN2_ROOT}/source/e804_opt/fully-connect/csi_xt800p_fully_connected_mat_q7_vec_q15.o | ||
objects += ${NN2_ROOT}/source/e804_opt/fully-connect/csi_xt800p_fully_connected_q15.o | ||
objects += ${NN2_ROOT}/source/e804_opt/fully-connect/csi_xt800p_fully_connected_q7.o | ||
|
||
#nn-support | ||
objects += ${NN2_ROOT}/source/e804_opt/nn-support/csi_xt800p_nntables.o | ||
|
||
#pooling | ||
objects += ${NN2_ROOT}/source/e804_opt/pooling/csi_xt800p_pool_q7_HWC.o | ||
|
||
#softmax | ||
objects += ${NN2_ROOT}/source/e804_opt/softmax/csi_xt800p_softmax_q15.o | ||
objects += ${NN2_ROOT}/source/e804_opt/softmax/csi_xt800p_softmax_q7.o | ||
|
||
objects += ${NN2_ROOT}/source/e804_opt/convolution.o | ||
objects += ${NN2_ROOT}/source/e804_opt/fullyconnected.o | ||
objects += ${NN2_ROOT}/source/e804_opt/avgpool.o | ||
objects += ${NN2_ROOT}/source/e804_opt/maxpool.o | ||
objects += ${NN2_ROOT}/source/e804_opt/softmax.o | ||
objects += ${NN2_ROOT}/source/e804_opt/relu.o | ||
objects += ${NN2_ROOT}/source/e804_opt/sigmoid.o | ||
objects += ${NN2_ROOT}/source/e804_opt/tanh.o | ||
|
||
objects += ${NN2_ROOT}/source/e804_opt/setup.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CROSS_COMPILE ?= csky-abiv2-elf- | ||
CC = $(CROSS_COMPILE)gcc | ||
AR = $(CROSS_COMPILE)ar | ||
|
||
CFLAGS += -ffunction-sections -fdata-sections -Wl,--gc-sections | ||
INCLUDE = -I../../include/include_xt800/dsp_include/ -I../../include/include_xt800/csi_core_include/ -I../../include/include_xt800/nn_include | ||
INCLUDE += -I../../include | ||
|
||
all: nn2_i805 | ||
|
||
include nn2_vdsp2.objs | ||
include ../nn2.objs | ||
include ../nn2_ref/nn2.objs | ||
include ../nn2_gref/nn2.objs | ||
|
||
nn2_i805: $(objects) | ||
$(AR) rcs $(INSTALL_DIR)/$(DSP_LIB) $^ | ||
|
||
%.o: %.c | ||
$(CC) -c $(CFLAGS) $(INCLUDE) $(MACRO) $(ENDIAN) $< -o $@ | ||
%.o: %.S | ||
$(CC) -c $(CFLAGS) $(INCLUDE) $(MACRO) $(ENDIAN) $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#activation | ||
#objects += ${NN2_ROOT}/source/i805_opt/activation/csi_xt800v_nn_activations_q15.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_xt800v_nn_activations_q15_fast.o | ||
#objects += ${NN2_ROOT}/source/i805_opt/activation/csi_xt800v_nn_activations_q7.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_xt800v_nn_activations_q7_fast.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_xt800v_relu_q15.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_xt800v_relu_q7.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_i805_relu_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_i805_relu6_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/activation/csi_i805_clip_8.o | ||
|
||
#convolution | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_convolve_1x1_HWC_q7_fast.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_convolve_HWC_q15_basic.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_convolve_HWC_q7_RGB.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_convolve_HWC_q7_basic.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_convolve_HWC_q7_fast_nonsquare.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_depthwise_separable_conv_HWC_q7.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_xt800v_depthwise_separable_conv_HWC_q7_nonsquare.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_i805_convolution_1x1_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_i805_convolution_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_i805_depthwise_convolution_8.o | ||
#objects += ${NN2_ROOT}/source/i805_opt/convolution/csi_i805_depthwise_convolution_3x3_8.o | ||
|
||
|
||
#fully-connect | ||
objects += ${NN2_ROOT}/source/i805_opt/fully-connect/csi_xt800v_fully_connected_mat_q7_vec_q15.o | ||
objects += ${NN2_ROOT}/source/i805_opt/fully-connect/csi_xt800v_fully_connected_q15.o | ||
objects += ${NN2_ROOT}/source/i805_opt/fully-connect/csi_xt800v_fully_connected_q7x4.o | ||
#objects += ${NN2_ROOT}/source/i805_opt/fully-connect/csi_xt800v_fully_connected_q7x16.o | ||
objects += ${NN2_ROOT}/source/i805_opt/fully-connect/csi_i805_fullyconnected_8.o | ||
|
||
#nn-support | ||
objects += ${NN2_ROOT}/source/i805_opt/nn-support/csi_xt800v_nntables.o | ||
|
||
#pooling | ||
objects += ${NN2_ROOT}/source/i805_opt/pooling/csi_xt800v_pool_q7_HWC.o | ||
objects += ${NN2_ROOT}/source/i805_opt/pooling/csi_xt800v_avepool_q7_HWC_nonsquare.o | ||
objects += ${NN2_ROOT}/source/i805_opt/pooling/csi_i805_maxpool_8.o | ||
|
||
#softmax | ||
objects += ${NN2_ROOT}/source/i805_opt/softmax/csi_xt800v_softmax_q15.o | ||
objects += ${NN2_ROOT}/source/i805_opt/softmax/csi_xt800v_softmax_q7.o | ||
#objects += ${NN2_ROOT}/source/i805_opt/softmax/csi_i805_softmax_8.o | ||
|
||
#gemm | ||
#objects += ${NN2_ROOT}/source/i805_opt/gemm/csi_i805_gemm_4x4_8.o | ||
#objects += ${NN2_ROOT}/source/i805_opt/gemm/csi_i805_gemm_4x16_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/gemm/csi_i805_vec_mat_mult_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/gemm/csi_i805_mat_mult_nt_t_8.o | ||
|
||
#basic_math_func | ||
objects += ${NN2_ROOT}/source/i805_opt/basic_math/csi_i805_elementwise_add_8.o | ||
objects += ${NN2_ROOT}/source/i805_opt/basic_math/csi_i805_elementwise_mul_8.o | ||
|
||
#reshape | ||
objects += ${NN2_ROOT}/source/i805_opt/reshape/csi_i805_reshape_8.o | ||
|
||
objects += ${NN2_ROOT}/source/i805_opt/convolution.o | ||
objects += ${NN2_ROOT}/source/i805_opt/fullyconnected.o | ||
objects += ${NN2_ROOT}/source/i805_opt/add.o | ||
objects += ${NN2_ROOT}/source/i805_opt/avgpool.o | ||
objects += ${NN2_ROOT}/source/i805_opt/maxpool.o | ||
objects += ${NN2_ROOT}/source/i805_opt/mul.o | ||
objects += ${NN2_ROOT}/source/i805_opt/softmax.o | ||
objects += ${NN2_ROOT}/source/i805_opt/relu.o | ||
objects += ${NN2_ROOT}/source/i805_opt/relu6.o | ||
objects += ${NN2_ROOT}/source/i805_opt/clip.o | ||
objects += ${NN2_ROOT}/source/i805_opt/reshape.o | ||
objects += ${NN2_ROOT}/source/i805_opt/sigmoid.o | ||
objects += ${NN2_ROOT}/source/i805_opt/tanh.o | ||
objects += ${NN2_ROOT}/source/i805_opt/setup.o |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.