@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Bincount extends Pointer
size
and the same dtype as weights
. If
weights
are empty, then index i
stores the number of times the value i
is
counted in arr
. If weights
are non-empty, then index i
stores the sum of
the value in weights
at each index where the corresponding value in arr
is
i
.
Values in arr
outside of the range [0, size) are ignored.
Arguments:
* scope: A Scope object
* arr: int32 Tensor
.
* size: non-negative int32 scalar Tensor
.
* weights: is an int32, int64, float32, or float64 Tensor
with the same
shape as arr
, or a length-0 Tensor
, in which case it acts as all weights
equal to 1.
Returns:
* Output
: 1D Tensor
with length equal to size
. The counts or summed weights for
each value in the range [0, size).Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Bincount(Pointer p)
Pointer cast constructor.
|
Bincount(Scope scope,
Input arr,
Input size,
Input weights) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Output |
bins() |
Bincount |
bins(Output setter) |
Node |
node() |
Operation |
operation() |
Bincount |
operation(Operation 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 Bincount(Pointer p)
Pointer(Pointer)
.public Node node()
Copyright © 2022. All rights reserved.