PReLU输出错误
Posted: Wed May 17, 2023 3:20 am
请问下,我这里自己训练的模型。conv2d出来没问题。经过PReLU,后大部分负数都变成了0.。请问下怎么排查饿
const static __attribute__((aligned(16))) int16_t _conv1_conv_activation_element[] = {
29358};
const static Activation<int16_t> _conv1_conv_activation(PReLU, _conv1_conv_activation_element, -16, {1,});
const Activation<int16_t> *get__conv1_conv_activation()
{
return &_conv1_conv_activation;
}
请教下这里面这几个参数是怎么算的?怎么变成斜率的? 经过这个了[ 250, -253, -3326, -267, -339, -2625, 6698, -446, -211, ...].变成了[ 250, 0, 0, 0, 0, 0, 6698, 0, -1, ......]..没看懂怎么变的
const static __attribute__((aligned(16))) int16_t _conv1_conv_activation_element[] = {
29358};
const static Activation<int16_t> _conv1_conv_activation(PReLU, _conv1_conv_activation_element, -16, {1,});
const Activation<int16_t> *get__conv1_conv_activation()
{
return &_conv1_conv_activation;
}
请教下这里面这几个参数是怎么算的?怎么变成斜率的? 经过这个了[ 250, -253, -3326, -267, -339, -2625, 6698, -446, -211, ...].变成了[ 250, 0, 0, 0, 0, 0, 6698, 0, -1, ......]..没看懂怎么变的