aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src/community/documentation.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/docs_src/community/documentation.md')
-rw-r--r--tensorflow/docs_src/community/documentation.md38
1 files changed, 18 insertions, 20 deletions
diff --git a/tensorflow/docs_src/community/documentation.md b/tensorflow/docs_src/community/documentation.md
index 003e0a25ec..6f2107ef40 100644
--- a/tensorflow/docs_src/community/documentation.md
+++ b/tensorflow/docs_src/community/documentation.md
@@ -477,31 +477,29 @@ should use Markdown in the docstring.
Here's a simple example:
-```python
-def foo(x, y, name="bar"):
- """Computes foo.
+ def foo(x, y, name="bar"):
+ """Computes foo.
- Given two 1-D tensors `x` and `y`, this operation computes the foo.
+ Given two 1-D tensors `x` and `y`, this operation computes the foo.
- Example:
+ Example:
- ```
- # x is [1, 1]
- # y is [2, 2]
- tf.foo(x, y) ==> [3, 3]
- ```
- Args:
- x: A `Tensor` of type `int32`.
- y: A `Tensor` of type `int32`.
- name: A name for the operation (optional).
+ ```
+ # x is [1, 1]
+ # y is [2, 2]
+ tf.foo(x, y) ==> [3, 3]
+ ```
+ Args:
+ x: A `Tensor` of type `int32`.
+ y: A `Tensor` of type `int32`.
+ name: A name for the operation (optional).
- Returns:
- A `Tensor` of type `int32` that is the foo of `x` and `y`.
+ Returns:
+ A `Tensor` of type `int32` that is the foo of `x` and `y`.
- Raises:
- ValueError: If `x` or `y` are not of type `int32`.
- """
-```
+ Raises:
+ ValueError: If `x` or `y` are not of type `int32`.
+ """
## Description of the docstring sections