Fixed documentation after constant_initializer.
Change: 136073454
This commit is contained in:
parent
2c34669f89
commit
8e63535abb
@ -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
|
||||
```
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
```
|
||||
```
|
||||
|
||||
|
||||
- - -
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user