Fixed documentation after constant_initializer.

Change: 136073454
This commit is contained in:
A. Unique TensorFlower 2016-10-13 11:42:56 -08:00 committed by TensorFlower Gardener
parent 2c34669f89
commit 8e63535abb
3 changed files with 3 additions and 3 deletions

View File

@ -72,5 +72,5 @@ tensor shape, the initializer will raise a `ValueError`.
* <b>`ValueError`</b>: Too many elements provided. Needed at most 6, but received 8
```
```

View File

@ -2433,7 +2433,7 @@ tensor shape, the initializer will raise a `ValueError`.
* <b>`ValueError`</b>: Too many elements provided. Needed at most 6, but received 8
```
```
- - -

View File

@ -139,7 +139,7 @@ def constant_initializer(value=0, dtype=dtypes.float32):
>>> x = tf.get_variable('x', shape=[2, 3], initializer=init)
ValueError: Too many elements provided. Needed at most 6, but received 8
```
```
"""
def _initializer(shape, dtype=dtype, partition_info=None):
return constant_op.constant(value, dtype=dtype, shape=shape)