@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.StringSplitV2 extends Pointer
source based on sep into a SparseTensor.
Let N be the size of source (typically N will be the batch size). Split each
element of source based on sep and return a SparseTensor
containing the split tokens. Empty tokens are ignored.
For example, N = 2, source[0] is 'hello world' and source[1] is 'a b c',
then the output will be
st.indices = [0, 0;
0, 1;
1, 0;
1, 1;
1, 2]
st.shape = [2, 3]
st.values = ['hello', 'world', 'a', 'b', 'c']
If sep is given, consecutive delimiters are not grouped together and are
deemed to delimit empty strings. For example, source of "1<>2<><>3" and
sep of "<>" returns ["1", "2", "", "3"]. If sep is None or an empty
string, consecutive whitespace are regarded as a single separator, and the
result will contain no empty strings at the startor end if the string has
leading or trailing whitespace.
Note that the above mentioned behavior matches python's str.split.
Arguments:
* scope: A Scope object
* input: 1-D string Tensor, the strings to split.
* sep: 0-D string Tensor, the delimiter character.
Optional attributes (see Attrs):
* maxsplit: An int. If maxsplit > 0, limit of the split of the result.
Returns:
* Output indices
* Output values
* Output shape| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.StringSplitV2.Attrs
Optional attribute setters for StringSplitV2
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
StringSplitV2(Pointer p)
Pointer cast constructor.
|
StringSplitV2(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input sep) |
StringSplitV2(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input sep,
tensorflow.StringSplitV2.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
indices() |
tensorflow.StringSplitV2 |
indices(tensorflow.Output indices) |
static tensorflow.StringSplitV2.Attrs |
Maxsplit(long x) |
tensorflow.Operation |
operation() |
tensorflow.StringSplitV2 |
operation(tensorflow.Operation operation) |
tensorflow.Output |
shape() |
tensorflow.StringSplitV2 |
shape(tensorflow.Output shape) |
tensorflow.Output |
values() |
tensorflow.StringSplitV2 |
values(tensorflow.Output values) |
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 StringSplitV2(Pointer p)
Pointer.Pointer(Pointer).public StringSplitV2(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input sep)
public StringSplitV2(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input sep, @Const @ByRef tensorflow.StringSplitV2.Attrs attrs)
@ByVal public static tensorflow.StringSplitV2.Attrs Maxsplit(@Cast(value="tensorflow::int64") long x)
@ByRef public tensorflow.Operation operation()
public tensorflow.StringSplitV2 operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output indices()
public tensorflow.StringSplitV2 indices(tensorflow.Output indices)
@ByRef public tensorflow.Output values()
public tensorflow.StringSplitV2 values(tensorflow.Output values)
@ByRef public tensorflow.Output shape()
public tensorflow.StringSplitV2 shape(tensorflow.Output shape)
Copyright © 2019. All rights reserved.