@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class MatrixSetDiag extends Pointer
input
and diagonal
, this operation returns a tensor with the
same shape and values as input
, except for the main diagonal of the
innermost matrices. These will be overwritten by the values in diagonal
.
The output is computed as follows:
Assume input
has k+1
dimensions [I, J, K, ..., M, N]
and diagonal
has
k
dimensions [I, J, K, ..., min(M, N)]
. Then the output is a
tensor of rank k+1
with dimensions [I, J, K, ..., M, N]
where:
* output[i, j, k, ..., m, n] = diagonal[i, j, k, ..., n]
for m == n
.
* output[i, j, k, ..., m, n] = input[i, j, k, ..., m, n]
for m != n
.
Arguments:
* scope: A Scope object
* input: Rank k+1
, where k >= 1
.
* diagonal: Rank k
, where k >= 1
.
Returns:
* Output
: Rank k+1
, with output.shape = input.shape
.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
MatrixSetDiag(Pointer p)
Pointer cast constructor.
|
MatrixSetDiag(Scope scope,
Input input,
Input diagonal) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
MatrixSetDiag |
operation(Operation setter) |
Output |
output() |
MatrixSetDiag |
output(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public MatrixSetDiag(Pointer p)
Pointer(Pointer)
.public Node node()
public MatrixSetDiag operation(Operation setter)
public MatrixSetDiag output(Output setter)
Copyright © 2022. All rights reserved.