fixed pylint formating issues
This commit is contained in:
parent
b65191ffd1
commit
eb234e5b7c
@ -550,8 +550,8 @@ def subtract(x, y, name=None):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`,
|
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`,
|
||||||
`float32`, `float64`, `uint8`, `int8`, `int16`, `int32`, `int64`, `complex64`,
|
`float32`, `float64`, `uint8`, `int8`, `int16`, `int32`, `int64`,
|
||||||
`complex128`, `string`.
|
`complex64`, `complex128`, `string`.
|
||||||
y: A `Tensor`. Must have the same type as x.
|
y: A `Tensor`. Must have the same type as x.
|
||||||
name: A name for the operation (optional).
|
name: A name for the operation (optional).
|
||||||
Returns:
|
Returns:
|
||||||
@ -4953,16 +4953,17 @@ def rsqrt(x, name=None):
|
|||||||
return gen_math_ops.rsqrt(x, name)
|
return gen_math_ops.rsqrt(x, name)
|
||||||
|
|
||||||
|
|
||||||
@tf_export("math.add", v1=["math.add","add"])
|
@tf_export("math.add", v1=["math.add", "add"])
|
||||||
@deprecation.deprecated_endpoints("add")
|
@deprecation.deprecated_endpoints("add")
|
||||||
@dispatch.add_dispatch_support
|
@dispatch.add_dispatch_support
|
||||||
def add(x,y,name=None):
|
def add(x, y, name=None):
|
||||||
"""Returns x + y element-wise.
|
"""Returns x + y element-wise.
|
||||||
|
|
||||||
*NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting
|
*NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting
|
||||||
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
|
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
|
||||||
|
|
||||||
Given two input tensors, the `tf.add` operation computes the sum for every element in the tensor.
|
Given two input tensors, the `tf.add` operation computes the sum
|
||||||
|
for every element in the tensor.
|
||||||
|
|
||||||
Both input and output have a range `(-inf, inf)`.
|
Both input and output have a range `(-inf, inf)`.
|
||||||
|
|
||||||
@ -4975,8 +4976,9 @@ def add(x,y,name=None):
|
|||||||
array([ 6. , 0. , 8.7, -21.9, inf], dtype=float32)>
|
array([ 6. , 0. , 8.7, -21.9, inf], dtype=float32)>
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`,
|
x: A `Tensor`. Must be one of the following types:
|
||||||
`float32`, `float64`, `uint8`, `int8`, `int16`, `int32`, `int64`, `complex64`,
|
`bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`,
|
||||||
|
`int16`, `int32`, `int64`, `complex64`,
|
||||||
`complex128`, `string`.
|
`complex128`, `string`.
|
||||||
y: A `Tensor`. Must have the same type as x.
|
y: A `Tensor`. Must have the same type as x.
|
||||||
name: A name for the operation (optional).
|
name: A name for the operation (optional).
|
||||||
@ -4986,14 +4988,15 @@ def add(x,y,name=None):
|
|||||||
return gen_math_ops.add(x,y,name)
|
return gen_math_ops.add(x,y,name)
|
||||||
|
|
||||||
|
|
||||||
@tf_export("math.acos", v1=["math.acos","acos"])
|
@tf_export("math.acos", v1=["math.acos", "acos"])
|
||||||
@deprecation.deprecated_endpoints("acos")
|
@deprecation.deprecated_endpoints("acos")
|
||||||
@dispatch.add_dispatch_support
|
@dispatch.add_dispatch_support
|
||||||
def acos(x,name=None):
|
def acos(x, name=None):
|
||||||
"""Computes acos of x element-wise.
|
"""Computes acos of x element-wise.
|
||||||
|
|
||||||
Provided an input tensor, the `tf.math.acos` operation returns the inverse cosine of
|
Provided an input tensor, the `tf.math.acos` operation
|
||||||
each element of the tensor. If `y = tf.math.cos(x)` then, `x = tf.math.acos(y)`.
|
returns the inverse cosine of each element of the tensor.
|
||||||
|
If `y = tf.math.cos(x)` then, `x = tf.math.acos(y)`.
|
||||||
|
|
||||||
Input range is `[-1, 1]` and the output has a range of `[0, pi]`.
|
Input range is `[-1, 1]` and the output has a range of `[0, pi]`.
|
||||||
|
|
||||||
@ -5007,8 +5010,8 @@ def acos(x,name=None):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`,
|
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`,
|
||||||
`float32`, `float64`, `uint8`, `int8`, `int16`, `int32`, `int64`, `complex64`,
|
`float32`, `float64`, `uint8`, `int8`, `int16`, `int32`,
|
||||||
`complex128`, `string`.
|
`int64`, `complex64`, `complex128`, `string`.
|
||||||
name: A name for the operation (optional).
|
name: A name for the operation (optional).
|
||||||
Returns:
|
Returns:
|
||||||
A `Tensor`. Has the same type as x.
|
A `Tensor`. Has the same type as x.
|
||||||
@ -5016,13 +5019,14 @@ def acos(x,name=None):
|
|||||||
return gen_math_ops.acos(x,name)
|
return gen_math_ops.acos(x,name)
|
||||||
|
|
||||||
|
|
||||||
@tf_export("math.floor", v1=["math.floor","floor"])
|
@tf_export("math.floor", v1=["math.floor", "floor"])
|
||||||
@deprecation.deprecated_endpoints("floor")
|
@deprecation.deprecated_endpoints("floor")
|
||||||
@dispatch.add_dispatch_support
|
@dispatch.add_dispatch_support
|
||||||
def floor(x,name=None):
|
def floor(x, name=None):
|
||||||
"""Returns element-wise largest integer not greater than x.
|
"""Returns element-wise largest integer not greater than x.
|
||||||
|
|
||||||
Both input range is `(-inf,inf)` and the ouput range consists of all integer values.
|
Both input range is `(-inf, inf)` and the
|
||||||
|
ouput range consists of all integer values.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
@ -5032,7 +5036,8 @@ def floor(x,name=None):
|
|||||||
array([ 1., -2., 5., -3., 0., inf], dtype=float32)>
|
array([ 1., -2., 5., -3., 0., inf], dtype=float32)>
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
|
x: A `Tensor`. Must be one of the following types:
|
||||||
|
`bfloat16`, `half`, `float32`, `float64`.
|
||||||
name: A name for the operation (optional).
|
name: A name for the operation (optional).
|
||||||
Returns:
|
Returns:
|
||||||
A `Tensor`. Has the same type as x.
|
A `Tensor`. Has the same type as x.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user