|View source on GitHub|
Compute the matrix rank of one or more matrices.
tf.linalg.matrix_rank( a, tol=None, validate_args=False, name=None )
a: (Batch of)
Tensor(s) which are to be pseudo-inverted.
tol: Threshold below which the singular value is counted as 'zero'. Default value:
eps * max(rows, cols) * max(singular_val)).
True, additional assertions might be embedded in the graph. Default value:
False(i.e., no graph assertions are added).
strprefixed to ops created by this function. Default value: 'matrix_rank'.
matrix_rank: (Batch of)
int32scalars representing the number of non-zero singular values.