@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.DiagPart extends Pointer
diagonal part
of the input. The diagonal part is computed as follows:
Assume input has dimensions [D1,..., Dk, D1,..., Dk], then the output is a
tensor of rank k with dimensions [D1,..., Dk] where:
diagonal[i1,..., ik] = input[i1, ..., ik, i1,..., ik].
For example:
# 'input' is [[1, 0, 0, 0]
[0, 2, 0, 0]
[0, 0, 3, 0]
[0, 0, 0, 4]]
tf.diag_part(input) ==> [1, 2, 3, 4]
Arguments:
* scope: A Scope object
* input: Rank k tensor where k is even and not zero.
Returns:
* Output: The extracted diagonal.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
DiagPart(Pointer p)
Pointer cast constructor.
|
DiagPart(tensorflow.Scope scope,
tensorflow.Input input) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Output |
diagonal() |
tensorflow.DiagPart |
diagonal(tensorflow.Output diagonal) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.DiagPart |
operation(tensorflow.Operation operation) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic DiagPart(Pointer p)
Pointer.Pointer(Pointer).public DiagPart(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByRef public tensorflow.Operation operation()
public tensorflow.DiagPart operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output diagonal()
public tensorflow.DiagPart diagonal(tensorflow.Output diagonal)
Copyright © 2019. All rights reserved.