diff options
-rw-r--r-- | tensorflow/python/keras/engine/sequential.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/keras/engine/sequential.py b/tensorflow/python/keras/engine/sequential.py index 415b15fde1..cf6fb44275 100644 --- a/tensorflow/python/keras/engine/sequential.py +++ b/tensorflow/python/keras/engine/sequential.py @@ -239,9 +239,9 @@ class Sequential(Model): x = inputs for layer in self.layers: kwargs = {} - if 'mask' in tf_inspect.getargspec(layer.call).args: + if 'mask' in tf_inspect.getfullargspec(layer.call).args: kwargs['mask'] = mask - if 'training' in tf_inspect.getargspec(layer.call).args: + if 'training' in tf_inspect.getfullargspec(layer.call).args: kwargs['training'] = training if isinstance(layer, Network) and layer._compute_output_and_mask_jointly: |