scale1_dtype = ng.int32
weight2_dtype = ng.int32
bias2_dtype = ng.int32
scale2_dtype = ng.int32
tmp_dtype = ng.int32
out_dtype = ng.int32
stride1 = (1, 1, 1, 1)
stride2 = (1, 1, 1, 1)
rshift_mul1 = None
rshift_sum1 = None
rshift_out1 = None
rshift_mul2 = None
rshift_sum2 = None
rshift_out2 = None
act_func1 = ng.relu6
act_func2 = ng.get_leaky_relu_op(round(0.01 * 2**31), 31)
par_ich1 = 1
par_och1 = 1
par_col1 = 1
par_row1 = 1
concur_och1 = None
stationary1 = 'filter'
input_ram_size1 = None
filter_ram_size1 = None
bias_ram_size1 = None
scale_ram_size1 = None
out_ram_size1 = None
par_ich2 = 1
par_och2 = 1
par_col2 = 1
par_row2 = 1
예제 #2
0
out_dtype = ng.int32
stride1 = (1, 1, 1, 1)
stride2 = (1, 1, 1, 1)
stride3 = (1, 1, 1, 1)
rshift_mul1 = None
rshift_sum1 = None
rshift_out1 = None
rshift_mul2 = None
rshift_sum2 = None
rshift_out2 = None
rshift_mul3 = None
rshift_sum3 = None
rshift_out3 = None
act_func1 = None
act_func2 = ng.relu
act_func3 = ng.get_leaky_relu_op(4, 4)
par_ich1 = 1
par_och1 = 1
par_col1 = 1
par_row1 = 1
concur_och1 = None
stationary1 = 'filter'
input_ram_size1 = None
filter_ram_size1 = None
bias_ram_size1 = None
scale_ram_size1 = None
out_ram_size1 = None
par_ich2 = 1
par_och2 = 1
par_col2 = 1
par_row2 = 1
예제 #3
0
bias1_dtype = ng.int32
scale1_dtype = ng.int32
weight2_dtype = ng.int32
bias2_dtype = ng.int32
scale2_dtype = ng.int32
tmp_dtype = ng.int32
out_dtype = ng.int32
stride1 = (1, 1, 1, 1)
stride2 = (1, 1, 1, 1)
rshift_mul1 = None
rshift_sum1 = None
rshift_out1 = None
rshift_mul2 = None
rshift_sum2 = None
rshift_out2 = None
act_func1 = ng.get_leaky_relu_op(4, 4)
act_func2 = ng.get_leaky_relu_op(4, 4)
par_ich1 = 1
par_och1 = 1
par_col1 = 1
par_row1 = 1
concur_och1 = None
stationary1 = 'filter'
input_ram_size1 = None
filter_ram_size1 = None
bias_ram_size1 = None
scale_ram_size1 = None
out_ram_size1 = None
par_ich2 = 1
par_och2 = 1
par_col2 = 1
예제 #4
0
L003_layer1_conv_cv_cbs_name_bias = 'L003_layer1_conv_cv_cbs_convolution_bias'
L003_layer1_conv_cv_cbs_name_scale = 'L003_layer1_conv_cv_cbs_i2f_i2f_scale'
L003_layer1_conv_cv_cbs_bias = ng.variable(
    dtype=ng.int32, shape=[8], name=L003_layer1_conv_cv_cbs_name_bias)
L003_layer1_conv_cv_cbs_scale = ng.variable(
    dtype=ng.int16, shape=[1], name=L003_layer1_conv_cv_cbs_name_scale)
# - rshift_out -
L003_layer1_conv_cv_cbs_name_rshift_out = 'L003_layer1_conv_cv_cbs_i2f_rshift_out'
L003_layer1_conv_cv_cbs_rshift_out = ng.variable(
    ng.dtype_int(width=8),
    shape=[8],
    name=L003_layer1_conv_cv_cbs_name_rshift_out)
variables[
    L003_layer1_conv_cv_cbs_name_rshift_out] = L003_layer1_conv_cv_cbs_rshift_out
# - act_func -
L003_layer1_conv_cv_cbs_act_func = ng.get_leaky_relu_op(
    13, rshift=None, dtype=ng.dtype_int(width=8))
variables[L003_layer1_conv_cv_cbs_name_filter] = L003_layer1_conv_cv_cbs_filter
variables[L003_layer1_conv_cv_cbs_name_bias] = L003_layer1_conv_cv_cbs_bias
variables[L003_layer1_conv_cv_cbs_name_scale] = L003_layer1_conv_cv_cbs_scale
L007_layer2_maxpool_name = 'L007_layer2_maxpool'
L008_layer3_conv_cv_cbs_name = 'L008_layer3_conv_cv_cbs'
L008_layer3_conv_cv_cbs_name_filter = 'L008_layer3_conv_cv_cbs_convolution_weight'
L008_layer3_conv_cv_cbs_filter = ng.variable(
    ng.dtype_int(width=8),
    shape=[16, 3, 3, 8],
    name=L008_layer3_conv_cv_cbs_name_filter)
# - bias & scale -
L008_layer3_conv_cv_cbs_name_bias = 'L008_layer3_conv_cv_cbs_convolution_bias'
L008_layer3_conv_cv_cbs_name_scale = 'L008_layer3_conv_cv_cbs_i2f_i2f_scale'
L008_layer3_conv_cv_cbs_bias = ng.variable(
    dtype=ng.int32, shape=[16], name=L008_layer3_conv_cv_cbs_name_bias)