memory optimize module has conflicts with learning decay module
Created by: QiJune
I add
fluid.memory_optimize(fluid.default_main_program)
before executor run.
The error log is following:
Hit Cache !!!! cache pool index is 0, var name is ceil_0.tmp_0, cached var name is tmp_0, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is fill_constant_0.tmp_0, cached var name is tmp_1, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is tmp_3, cached var name is fill_constant_1.tmp_0, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is tmp_4, cached var name is tmp_2, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is tmp_6, cached var name is cast_0.tmp_0, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is tmp_8, cached var name is tmp_5, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is tmp_10, cached var name is tmp_7, var shape is [1L]
Hit Cache !!!! cache pool index is 0, var name is tmp_12, cached var name is tmp_9, var shape is [1L]
F
======================================================================
FAIL: test_decay (__main__.TestLearningRateDecay)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_learning_rate_decay.py", line 149, in test_decay
self.check_decay(py_decay_fn, fluid_decay_fn, kwargs)
File "test_learning_rate_decay.py", line 105, in check_decay
str(python_decayed_lr), str(lr_val[0])))
AssertionError: Failed fn is polynomial_decay, Python result is 1.0, Fluid result is nan
----------------------------------------------------------------------
Ran 1 test in 0.152s
FAILED (failures=1)