Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

(1.0 - forget_fc)报错,求解决方法

Open chenbblei opened this issue 8 years ago • 2 comments

forget_fc = paddle.layer.fc(input=input, size=size, act=act, bias_attr=True) size为1024 (1.0 - forget_fc)报错

chenbblei avatar Jun 26 '18 09:06 chenbblei

写成如下方式吧:

x =  -1 * forget_fc 
x = x + 1

或者:

y = paddle.layer.slope_intercept(forget_fc, slope=-1, intercept=1 )

建议下面方式。

qingqing01 avatar Jun 26 '18 09:06 qingqing01

@qingqing01 多谢

chenbblei avatar Jun 26 '18 09:06 chenbblei