T - data type for output() output@Operator(group="linalg") public final class TriangularSolve<T> extends PrimitiveOp implements Operand<T>
backsubstitution.
`matrix` is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. If `lower` is `True` then the strictly upper triangular part of each inner-most matrix is assumed to be zero and not accessed. If `lower` is False then the strictly lower triangular part of each inner-most matrix is assumed to be zero and not accessed. `rhs` is a tensor of shape `[..., M, K]`.
The output is a tensor of shape `[..., M, K]`. If `adjoint` is `True` then the innermost matrices in `output` satisfy matrix equations `matrix[..., :, :] * output[..., :, :] = rhs[..., :, :]`. If `adjoint` is `False` then the strictly then the innermost matrices in `output` satisfy matrix equations `adjoint(matrix[..., i, k]) * output[..., k, j] = rhs[..., i, j]`.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TriangularSolve.Options |
Optional attributes for
TriangularSolve |
operation| Modifier and Type | Method | Description |
|---|---|---|
static TriangularSolve.Options |
adjoint(java.lang.Boolean adjoint) |
|
Output<T> |
asOutput() |
Returns the symbolic handle of a tensor.
|
static <T> TriangularSolve<T> |
create(Scope scope,
Operand<T> matrix,
Operand<T> rhs,
TriangularSolve.Options... options) |
Factory method to create a class to wrap a new TriangularSolve operation to the graph.
|
static TriangularSolve.Options |
lower(java.lang.Boolean lower) |
|
Output<T> |
output() |
Shape is `[..., M, K]`.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static <T> TriangularSolve<T> create(Scope scope, Operand<T> matrix, Operand<T> rhs, TriangularSolve.Options... options)
scope - current graph scopematrix - Shape is `[..., M, M]`.rhs - Shape is `[..., M, K]`.options - carries optional attributes valuespublic static TriangularSolve.Options lower(java.lang.Boolean lower)
lower - Boolean indicating whether the innermost matrices in `matrix` are
lower or upper triangular.public static TriangularSolve.Options adjoint(java.lang.Boolean adjoint)
adjoint - Boolean indicating whether to solve with `matrix` or its (block-wise)
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)