@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class ReduceJoin extends Pointer
[\\(d_0, d_1, ..., d_{n-1}\\)]
. Returns a new Tensor created by joining the input
strings with the given separator (default: empty string). Negative indices are
counted backwards from the end, with -1
being equivalent to n - 1
. If
indices are not specified, joins across all dimensions beginning from n - 1
through 0
.
For example:
python
# tensor `a` is [["a", "b"], ["c", "d"]]
tf.reduce_join(a, 0) ==> ["ac", "bd"]
tf.reduce_join(a, 1) ==> ["ab", "cd"]
tf.reduce_join(a, -2) = tf.reduce_join(a, 0) ==> ["ac", "bd"]
tf.reduce_join(a, -1) = tf.reduce_join(a, 1) ==> ["ab", "cd"]
tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]]
tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]]
tf.reduce_join(a, 0, separator=".") ==> ["a.c", "b.d"]
tf.reduce_join(a, [0, 1]) ==> "acbd"
tf.reduce_join(a, [1, 0]) ==> "abcd"
tf.reduce_join(a, []) ==> [["a", "b"], ["c", "d"]]
tf.reduce_join(a) = tf.reduce_join(a, [1, 0]) ==> "abcd"
Arguments:
* scope: A Scope object
* inputs: The input to be joined. All reduced indices must have non-zero size.
* reduction_indices: The dimensions to reduce over. Dimensions are reduced in the
order specified. Omitting reduction_indices
is equivalent to passing
[n-1, n-2, ..., 0]
. Negative indices from -n
to -1
are supported.
Optional attributes (see Attrs
):
* keep_dims: If True
, retain reduced dimensions with length 1
.
* separator: The separator to use when joining.
Returns:
* Output
: Has shape equal to that of the input with reduced dimensions removed or
set to 1
depending on keep_dims
.Modifier and Type | Class and Description |
---|---|
static class |
ReduceJoin.Attrs
Optional attribute setters for ReduceJoin
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ReduceJoin(Pointer p)
Pointer cast constructor.
|
ReduceJoin(Scope scope,
Input inputs,
Input reduction_indices) |
ReduceJoin(Scope scope,
Input inputs,
Input reduction_indices,
ReduceJoin.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static ReduceJoin.Attrs |
KeepDims(boolean x) |
Node |
node() |
Operation |
operation() |
ReduceJoin |
operation(Operation setter) |
Output |
output() |
ReduceJoin |
output(Output setter) |
static ReduceJoin.Attrs |
Separator(BytePointer x) |
static ReduceJoin.Attrs |
Separator(String x) |
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 ReduceJoin(Pointer p)
Pointer(Pointer)
.public ReduceJoin(@Const @ByRef Scope scope, @ByVal Input inputs, @ByVal Input reduction_indices)
public Node node()
@ByVal public static ReduceJoin.Attrs KeepDims(@Cast(value="bool") boolean x)
@ByVal public static ReduceJoin.Attrs Separator(@tensorflow.StringPiece BytePointer x)
@ByVal public static ReduceJoin.Attrs Separator(@tensorflow.StringPiece String x)
public ReduceJoin operation(Operation setter)
public ReduceJoin output(Output setter)
Copyright © 2022. All rights reserved.