• H
    Fix random test_recurrent_op failure (#18718) · a3028bb7
    Huihuang Zheng 提交于
    The change includes 3 things:
    
    1. Set CPU_NUM to 1 in the tests because the ParallelExecutor will print warning that CPU_NUM is not set and use default 1.
    
    2. Old tests compare two RNNs, hand written simple RNN and same RNN built by Paddle, but initialized RNN weights in numpy random and Paddle random separately. Fixed it by setting weights and bias values.
    
    3. Also set numpy random seed in the tests. Now the two RNNs diff can be smaller (rtol from 0.1, 0.2 to. 0.01) in the tests.
    
    test=develop
    a3028bb7
test_eager_deletion_padding_rnn.py 24.3 KB