clean up backticks in docs for tf.norm

This commit is contained in:
4d55397500 2019-03-04 00:46:31 -08:00
parent 39be9adca1
commit 7c01f684b1

View File

@ -437,13 +437,13 @@ def norm_v2(tensor,
Args: Args:
tensor: `Tensor` of types `float32`, `float64`, `complex64`, `complex128` tensor: `Tensor` of types `float32`, `float64`, `complex64`, `complex128`
ord: Order of the norm. Supported values are 'fro', 'euclidean', ord: Order of the norm. Supported values are `'fro'`, `'euclidean'`,
`1`, `2`, `np.inf` and any positive real number yielding the corresponding `1`, `2`, `np.inf` and any positive real number yielding the corresponding
p-norm. Default is 'euclidean' which is equivalent to Frobenius norm if p-norm. Default is `'euclidean'` which is equivalent to Frobenius norm if
`tensor` is a matrix and equivalent to 2-norm for vectors. `tensor` is a matrix and equivalent to 2-norm for vectors.
Some restrictions apply: Some restrictions apply:
a) The Frobenius norm `fro` is not defined for vectors, a) The Frobenius norm `'fro'` is not defined for vectors,
b) If axis is a 2-tuple (matrix norm), only 'euclidean', 'fro', `1`, b) If axis is a 2-tuple (matrix norm), only `'euclidean'`, '`fro'`, `1`,
`2`, `np.inf` are supported. `2`, `np.inf` are supported.
See the description of `axis` on how to compute norms for a batch of See the description of `axis` on how to compute norms for a batch of
vectors or matrices stored in a tensor. vectors or matrices stored in a tensor.