Skip to content

Commit

Permalink
Fixes bad substitution in argmin/max docs
Browse files Browse the repository at this point in the history
Change: 141222201
  • Loading branch information
markmcd authored and tensorflower-gardener committed Dec 7, 2016
1 parent defac27 commit 9d0677f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### `tf.argmin(input, axis=None, name=None, dimension=None)` {#argmin}

Returns the index with the smallest value across axiss of a tensor.
Returns the index with the smallest value across axes of a tensor.

##### Args:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### `tf.argmax(input, axis=None, name=None, dimension=None)` {#argmax}

Returns the index with the largest value across axiss of a tensor.
Returns the index with the largest value across axes of a tensor.

##### Args:

Expand Down
4 changes: 2 additions & 2 deletions tensorflow/g3doc/api_docs/python/math_ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -3313,7 +3313,7 @@ a tensor.

### `tf.argmin(input, axis=None, name=None, dimension=None)` {#argmin}

Returns the index with the smallest value across axiss of a tensor.
Returns the index with the smallest value across axes of a tensor.

##### Args:

Expand All @@ -3333,7 +3333,7 @@ Returns the index with the smallest value across axiss of a tensor.

### `tf.argmax(input, axis=None, name=None, dimension=None)` {#argmax}

Returns the index with the largest value across axiss of a tensor.
Returns the index with the largest value across axes of a tensor.

##### Args:

Expand Down
6 changes: 4 additions & 2 deletions tensorflow/python/ops/math_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def argmax(input, axis=None, name=None, dimension=None):
return gen_math_ops.arg_max(input, axis, name)


argmax.__doc__ = gen_math_ops.arg_max.__doc__.replace("dimension", "axis")
argmax.__doc__ = (gen_math_ops.arg_max.__doc__
.replace("dimensions", "axes").replace("dimension", "axis"))


# TODO(aselle:deprecate arg_min)
Expand All @@ -262,7 +263,8 @@ def argmin(input, axis=None, name=None, dimension=None):
return gen_math_ops.arg_min(input, axis, name)


argmin.__doc__ = gen_math_ops.arg_min.__doc__.replace("dimension", "axis")
argmin.__doc__ = (gen_math_ops.arg_min.__doc__
.replace("dimensions", "axes").replace("dimension", "axis"))

# pylint: enable=redefined-builtin

Expand Down

0 comments on commit 9d0677f

Please sign in to comment.