aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/estimator/model_fn.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/estimator/model_fn.py')
-rw-r--r--tensorflow/python/estimator/model_fn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/estimator/model_fn.py b/tensorflow/python/estimator/model_fn.py
index 009ac9d8fd..a9fd8f8e1a 100644
--- a/tensorflow/python/estimator/model_fn.py
+++ b/tensorflow/python/estimator/model_fn.py
@@ -99,7 +99,7 @@ class EstimatorSpec(
ignored in eval and infer modes. Example:
```python
- def my_model_fn(mode, features, labels):
+ def my_model_fn(features, labels, mode):
predictions = ...
loss = ...
train_op = ...
@@ -114,7 +114,7 @@ class EstimatorSpec(
given mode. Example:
```python
- def my_model_fn(mode, features, labels):
+ def my_model_fn(features, labels, mode):
if (mode == tf.estimator.ModeKeys.TRAIN or
mode == tf.estimator.ModeKeys.EVAL):
loss = ...