keras_lookahead icon indicating copy to clipboard operation
keras_lookahead copied to clipboard

Not working when using libraries from tensorflow.keras...

Open IlyaMichlin opened this issue 6 years ago • 3 comments

 29                       model._feed_targets +
 30                       model._feed_sample_weights)

---> 31 if model._uses_dynamic_learning_phase(): 32 inputs += [K.learning_phase()] 33 fast_params = model._collected_trainable_weights

AttributeError: 'Sequential' object has no attribute '_uses_dynamic_learning_phase'

IlyaMichlin avatar Oct 05 '19 21:10 IlyaMichlin

I also encounter this problem.

gptcod avatar Oct 17 '19 08:10 gptcod

I also encounter this problem.

I guess you won't see a solution in the nearest future, keras_lookahead seems to be pure keras implementation https://github.com/bojone/keras_lookahead/issues/6

mkhlyzov avatar Oct 17 '19 09:10 mkhlyzov

@IlyaMichlin @herosunly @fzyzcjy This may be due to a keras version mismatch, which I have also experienced. You can solve the problem in this way: " pip install keras==2.2.4 " ;

wenfan-wenfan avatar Nov 17 '20 08:11 wenfan-wenfan