Merge pull request #34397 from shawwn:patch-2

PiperOrigin-RevId: 281346128
Change-Id: I5fe13099be0806e9d69a410a64d996de89c41241
This commit is contained in:
TensorFlower Gardener 2019-11-19 14:16:21 -08:00
commit 98f0c14e83
2 changed files with 6 additions and 2 deletions

View File

@ -501,6 +501,10 @@ cc_library(
}), }),
) )
# PLACEHOLDER_GRPC_RULE
# PLACEHOLDER_GRPC++_RULE
# A shared object which includes registration mechanisms for ops and # A shared object which includes registration mechanisms for ops and
# kernels. Does not include the implementations of any ops or kernels. Instead, # kernels. Does not include the implementations of any ops or kernels. Instead,
# the library which loads libtensorflow_framework.so # the library which loads libtensorflow_framework.so

View File

@ -109,7 +109,7 @@ def gradients(ys,
```python ```python
a = tf.ones([1, 2]) a = tf.ones([1, 2])
b = tf.ones([3, 1]) b = tf.ones([3, 1])
g1 = tf.gradients([b], [a], unnconnected_gradients='none') g1 = tf.gradients([b], [a], unconnected_gradients='none')
sess.run(g1) # [None] sess.run(g1) # [None]
g2 = tf.gradients([b], [a], unconnected_gradients='zero') g2 = tf.gradients([b], [a], unconnected_gradients='zero')
@ -227,7 +227,7 @@ def gradients_v2(ys, # pylint: disable=invalid-name
```python ```python
a = tf.ones([1, 2]) a = tf.ones([1, 2])
b = tf.ones([3, 1]) b = tf.ones([3, 1])
g1 = tf.gradients([b], [a], unnconnected_gradients='none') g1 = tf.gradients([b], [a], unconnected_gradients='none')
sess.run(g1) # [None] sess.run(g1) # [None]
g2 = tf.gradients([b], [a], unconnected_gradients='zero') g2 = tf.gradients([b], [a], unconnected_gradients='zero')