Svd

public final class Svd

Computes the eigen decomposition of a batch of self-adjoint matrices

(Note: Only real inputs are supported).

Computes the eigenvalues and eigenvectors of the innermost M-by-N matrices in tensor such that tensor[...,:,:] = u[..., :, :] * Diag(s[..., :]) * Transpose(v[...,:,:]).

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <T extends TType> Svd<T>
create(Scope scope, Operand<T> a, Long maxIter, Float epsilon, String precisionConfig)
Factory method to create a class wrapping a new Svd operation.
Output<T>
s()
Singular values.
Output<T>
u()
Left singular vectors.
Output<T>
v()
Right singular vectors.

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "XlaSvd"

Public Methods

public static Svd<T> create (Scope scope, Operand<T> a, Long maxIter, Float epsilon, String precisionConfig)

Factory method to create a class wrapping a new Svd operation.

Parameters
scope current scope
a the input tensor.
maxIter maximum number of sweep update, i.e., the whole lower triangular part or upper triangular part based on parameter lower. Heuristically, it has been argued that approximately log(min (M, N)) sweeps are needed in practice (Ref: Golub & van Loan "Matrix Computation").
epsilon the tolerance ratio.
precisionConfig a serialized xla::PrecisionConfig proto.
Returns
  • a new instance of Svd

public Output<T> s ()

Singular values. The values are sorted in reverse order of magnitude, so s[..., 0] is the largest value, s[..., 1] is the second largest, etc.

public Output<T> u ()

Left singular vectors.

public Output<T> v ()

Right singular vectors.