Merge pull request #26312 from 4d55397500:clean-up-backticks-linalgops

PiperOrigin-RevId: 236694603
This commit is contained in:
TensorFlower Gardener 2019-03-04 12:51:54 -08:00
commit c96eca31fe

View File

@ -437,13 +437,13 @@ def norm_v2(tensor,
Args:
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
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.
Some restrictions apply:
a) The Frobenius norm `fro` is not defined for vectors,
b) If axis is a 2-tuple (matrix norm), only 'euclidean', 'fro', `1`,
a) The Frobenius norm `'fro'` is not defined for vectors,
b) If axis is a 2-tuple (matrix norm), only `'euclidean'`, '`fro'`, `1`,
`2`, `np.inf` are supported.
See the description of `axis` on how to compute norms for a batch of
vectors or matrices stored in a tensor.