* Fix #2797 * It because trainer_config_helpers' __dfs_travel__ did not record the node which travelled, and if the topology has a recursive dependency, there are some nodes will be travelled multiple times. * Add a `travelled` set to record which node is travelled. * Also add a unittest for this situation.gangliao-patch-1
parent
6398c15c7f
commit
313e9f551f
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
||||
from paddle.trainer_config_helpers import *
|
||||
|
||||
settings(batch_size=1000, learning_rate=1e-5)
|
||||
|
||||
din = data_layer(name='data', size=100)
|
||||
|
||||
enc = din
|
||||
for i in range(32):
|
||||
enc = addto_layer([enc, enc])
|
||||
|
||||
pred = fc_layer(
|
||||
input=fc_layer(
|
||||
input=enc, size=32, act=ReluActivation()),
|
||||
size=10,
|
||||
act=SoftmaxActivation())
|
||||
outputs(pred)
|
Loading…
Reference in new issue