@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Rank extends Pointer
input.
For example:
# 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]
# shape of tensor 't' is [2, 2, 3]
rank(t) ==> 3
**Note**: The rank of a tensor is not the same as the rank of a matrix. The rank
of a tensor is the number of indices required to uniquely select each element
of the tensor. Rank is also known as "order", "degree", or "ndims."
Arguments:
* scope: A Scope object
Returns:
* Output: The output tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Rank(Pointer p)
Pointer cast constructor.
|
Rank(tensorflow.Scope scope,
tensorflow.Input input) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Rank |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.Rank |
output(tensorflow.Output output) |
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 Rank(Pointer p)
Pointer.Pointer(Pointer).public Rank(@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.Rank operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.Rank output(tensorflow.Output output)
Copyright © 2019. All rights reserved.