aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-03 15:30:54 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-03 15:31:05 -0700
commitd0882f34a46f616b3cf5854ebecef1f21e161ef0 (patch)
tree7748b3acf2635c755ebb546166e22ba50688d8ac /tensorflow/python
parentefbee1ab2cac59f511cc0850d84414e711bbda3b (diff)
parentd0690d46466bf0393ad65544d1e8c55e948df133 (diff)
Merge pull request #22591 from EFanZh:fix-docs
PiperOrigin-RevId: 215639962
Diffstat (limited to 'tensorflow/python')
-rw-r--r--tensorflow/python/keras/engine/training.py2
-rw-r--r--tensorflow/python/training/distribute.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/python/keras/engine/training.py b/tensorflow/python/keras/engine/training.py
index d81bd83f7f..2ebb4cf99f 100644
--- a/tensorflow/python/keras/engine/training.py
+++ b/tensorflow/python/keras/engine/training.py
@@ -2362,6 +2362,6 @@ class DistributedCallbackModel(Model):
# Whitelisted atttributes of the model that can be accessed by the user
# during a callback.
if item not in ['_setattr_tracking']:
- logging.warning('You are accessing attribute ' + item + 'of the '
+ logging.warning('You are accessing attribute ' + item + ' of the '
'DistributedCallbackModel that may not have been set '
'correctly.')
diff --git a/tensorflow/python/training/distribute.py b/tensorflow/python/training/distribute.py
index b3f3c29b2f..144b167170 100644
--- a/tensorflow/python/training/distribute.py
+++ b/tensorflow/python/training/distribute.py
@@ -633,7 +633,7 @@ class DistributionStrategy(object):
Args:
fn: function to run using this distribution strategy. The function must
- have the following signature: def fn(context, *inputs).
+ have the following signature: `def fn(context, *inputs)`.
`context` is an instance of `MultiStepContext` that will be passed when
`fn` is run. `context` can be used to specify the outputs to be returned
from `fn` by calling `context.set_last_step_output`. It can also be used
@@ -799,9 +799,9 @@ class DistributionStrategy(object):
return merged(results)
```
- Otherwise this returns `fn(var, *args, **kwargs)` colocated with `var`.'
+ Otherwise this returns `fn(var, *args, **kwargs)` colocated with `var`.
- Neither *args nor **kwargs may contain per-device values.
+ Neither `*args` nor `**kwargs` may contain per-device values.
If they contain mirrored values, they will be unwrapped before
calling `fn`.