aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/layers
diff options
context:
space:
mode:
authorGravatar joe yearsley <joe@kheironmed.com>2018-10-02 16:33:37 +0100
committerGravatar joe yearsley <joe@kheironmed.com>2018-10-02 16:33:37 +0100
commit1a56a3299e904d5a3352a3a15e4cf7401f72bbc3 (patch)
tree2067749d3bb2a60730a281516dc8c47ae113e9cd /tensorflow/python/layers
parent32059ed204ecbee7828057d23a1c1daf561c87fd (diff)
Updated ordering for kwargs
Diffstat (limited to 'tensorflow/python/layers')
-rw-r--r--tensorflow/python/layers/core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/python/layers/core.py b/tensorflow/python/layers/core.py
index 5919fa543e..e06e9aba4a 100644
--- a/tensorflow/python/layers/core.py
+++ b/tensorflow/python/layers/core.py
@@ -292,17 +292,17 @@ class Flatten(keras_layers.Flatten, base.Layer):
@tf_export('layers.flatten')
-def flatten(inputs, data_format='channels_last', name=None):
+def flatten(inputs, name=None, data_format='channels_last'):
"""Flattens an input tensor while preserving the batch axis (axis 0).
Arguments:
inputs: Tensor input.
+ name: The name of the layer (string).
data_format: A string, one of `channels_last` (default) or `channels_first`.
The ordering of the dimensions in the inputs.
`channels_last` corresponds to inputs with shape
`(batch, height, width, channels)` while `channels_first` corresponds to
inputs with shape `(batch, channels, height, width)`.
- name: The name of the layer (string).
Returns:
Reshaped tensor.
@@ -319,7 +319,7 @@ def flatten(inputs, data_format='channels_last', name=None):
# now `y` has shape `(None, None)`
```
"""
- layer = Flatten(data_format=data_format, name=name)
+ layer = Flatten(name=name, data_format=data_format)
return layer.apply(inputs)