Avoid calling K.learning_phase() when not necessary in Dropout layer since it instant...
authorFrancois Chollet <fchollet@google.com>
Fri, 13 Apr 2018 01:36:13 +0000 (18:36 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 13 Apr 2018 01:39:00 +0000 (18:39 -0700)
commitc4526e50b2ac2d6819c8eb67db5423af103a1bb7
treef2298a3aeece375e2b6cbe4839e47300e76d073c
parent93afca507ec09ff3b5cdf05cbd5eb265e83fc8cb
Avoid calling K.learning_phase() when not necessary in Dropout layer since it instantiates a placeholder_with_default, which is not supported by TPU compilation.

PiperOrigin-RevId: 192705478
tensorflow/python/keras/_impl/keras/layers/core.py