Add mask keyword to ensure that we don't pass masks in place of training.
authorAnjali Sridhar <anjalisridhar@google.com>
Tue, 6 Mar 2018 18:35:56 +0000 (10:35 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Mar 2018 18:43:29 +0000 (10:43 -0800)
PiperOrigin-RevId: 188043473

tensorflow/python/keras/_impl/keras/engine/network.py

index 0fc0542..93d97d6 100644 (file)
@@ -396,7 +396,7 @@ class Network(base_layer.Layer):
     if cache_key in self._output_mask_cache:
       return self._output_mask_cache[cache_key]
     else:
-      _, output_masks = self._run_internal_graph(inputs, masks)
+      _, output_masks = self._run_internal_graph(inputs, mask=masks)
       return output_masks
 
   @property