T - data type for output() output@Operator public final class MatrixInverse<T> extends PrimitiveOp implements Operand<T>
adjoints (conjugate transposes).
The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The output is a tensor of the same shape as the input containing the inverse for all input submatrices `[..., :, :]`.
The op uses LU decomposition with partial pivoting to compute the inverses.
If a matrix is not invertible there is no guarantee what the op does. It may detect the condition and raise an exception or it may simply return a garbage result.
| Modifier and Type | Class and Description |
|---|---|
static class |
MatrixInverse.Options
Optional attributes for
MatrixInverse |
operation| Modifier and Type | Method and Description |
|---|---|
static MatrixInverse.Options |
adjoint(Boolean adjoint) |
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> MatrixInverse<T> |
create(Scope scope,
Operand<T> input,
MatrixInverse.Options... options)
Factory method to create a class to wrap a new MatrixInverse operation to the graph.
|
Output<T> |
output()
Shape is `[..., M, M]`.
|
equals, hashCode, toStringpublic static <T> MatrixInverse<T> create(Scope scope, Operand<T> input, MatrixInverse.Options... options)
scope - current graph scopeinput - Shape is `[..., M, M]`.options - carries optional attributes valuespublic static MatrixInverse.Options adjoint(Boolean adjoint)
adjoint - public Output<T> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<T>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.