diff --git a/tensorflow/python/ops/array_ops.py b/tensorflow/python/ops/array_ops.py index c6ff0201823..e235047aff3 100644 --- a/tensorflow/python/ops/array_ops.py +++ b/tensorflow/python/ops/array_ops.py @@ -1718,8 +1718,10 @@ def placeholder(dtype, shape=None, name=None): print(sess.run(y, feed_dict={x: rand_array})) # Will succeed. ``` - @compatibility{eager} Placeholders are not compatible with eager execution. - + @compatibility(eager) + Placeholders are not compatible with eager execution. + @end_compatibility + Args: dtype: The type of elements in the tensor to be fed. shape: The shape of the tensor to be fed (optional). If the shape is not