@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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 |
tensorflow.ReduceJoin.Attrs
Optional attribute setters for ReduceJoin
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ReduceJoin(Pointer p)
Pointer cast constructor.
|
ReduceJoin(tensorflow.Scope scope,
tensorflow.Input inputs,
tensorflow.Input reduction_indices) |
ReduceJoin(tensorflow.Scope scope,
tensorflow.Input inputs,
tensorflow.Input reduction_indices,
tensorflow.ReduceJoin.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.ReduceJoin.Attrs |
KeepDims(boolean x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.ReduceJoin |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.ReduceJoin |
output(tensorflow.Output output) |
static tensorflow.ReduceJoin.Attrs |
Separator(BytePointer x) |
static tensorflow.ReduceJoin.Attrs |
Separator(String x) |
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 ReduceJoin(Pointer p)
Pointer.Pointer(Pointer).public ReduceJoin(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input inputs, @ByVal tensorflow.Input reduction_indices)
public ReduceJoin(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input inputs, @ByVal tensorflow.Input reduction_indices, @Const @ByRef tensorflow.ReduceJoin.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.ReduceJoin.Attrs KeepDims(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.ReduceJoin.Attrs Separator(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.ReduceJoin.Attrs Separator(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.ReduceJoin operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.ReduceJoin output(tensorflow.Output output)
Copyright © 2019. All rights reserved.