@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class UnsortedSegmentMin extends Pointer
j...
such
that segment_ids[j...] == i
.
If the minimum is empty for a given segment ID i
, it outputs the largest
possible value for the specific numeric type,
output[i] = numeric_limits<T>::max()
.
For example:
python
c = tf.constant([[1,2,3,4], [5,6,7,8], [4,3,2,1]])
tf.unsorted_segment_min(c, tf.constant([0, 1, 0]), num_segments=2)
# ==> [[ 1, 2, 2, 1],
# [5, 6, 7, 8]]
If the given segment ID i
is negative, then the corresponding value is
dropped, and will not be included in the result.
Arguments:
* scope: A Scope object
* segment_ids: A tensor whose shape is a prefix of data.shape
.
Returns:
* Output
: Has same shape as data, except for the first segment_ids.rank
dimensions, which are replaced with a single dimension which has size
num_segments
.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
UnsortedSegmentMin(Pointer p)
Pointer cast constructor.
|
UnsortedSegmentMin(Scope scope,
Input data,
Input segment_ids,
Input num_segments) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
UnsortedSegmentMin |
operation(Operation setter) |
Output |
output() |
UnsortedSegmentMin |
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 UnsortedSegmentMin(Pointer p)
Pointer(Pointer)
.public Node node()
public UnsortedSegmentMin operation(Operation setter)
public UnsortedSegmentMin output(Output setter)
Copyright © 2022. All rights reserved.