@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.StringSplit extends Pointer
input based on delimiter into a SparseTensor.
Let N be the size of source (typically N will be the batch size). Split each
element of input based on delimiter and return a SparseTensor
containing the splitted tokens. Empty tokens are ignored.
delimiter can be empty, or a string of split characters. If delimiter is an
empty string, each element of input is split into individual single-byte
character strings, including splitting of UTF-8 multibyte sequences. Otherwise
every character of delimiter is a potential split point.
For example:
N = 2, input[0] is 'hello world' and input[1] is 'a b c', then the output
will be
indices = [0, 0;
0, 1;
1, 0;
1, 1;
1, 2]
shape = [2, 3]
values = ['hello', 'world', 'a', 'b', 'c']
Arguments:
* scope: A Scope object
* input: 1-D. Strings to split.
* delimiter: 0-D. Delimiter characters (bytes), or empty string.
Optional attributes (see Attrs):
* skip_empty: A bool. If True, skip the empty strings from the result.
Returns:
* Output indices: A dense matrix of int64 representing the indices of the sparse tensor.
* Output values: A vector of strings corresponding to the splited values.
* Output shape: a length-2 vector of int64 representing the shape of the sparse
tensor, where the first value is N and the second value is the maximum number
of tokens in a single input entry.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.StringSplit.Attrs
Optional attribute setters for StringSplit
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
StringSplit(Pointer p)
Pointer cast constructor.
|
StringSplit(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input delimiter) |
StringSplit(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input delimiter,
tensorflow.StringSplit.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
indices() |
tensorflow.StringSplit |
indices(tensorflow.Output indices) |
tensorflow.Operation |
operation() |
tensorflow.StringSplit |
operation(tensorflow.Operation operation) |
tensorflow.Output |
shape() |
tensorflow.StringSplit |
shape(tensorflow.Output shape) |
static tensorflow.StringSplit.Attrs |
SkipEmpty(boolean x) |
tensorflow.Output |
values() |
tensorflow.StringSplit |
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 StringSplit(Pointer p)
Pointer.Pointer(Pointer).public StringSplit(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input delimiter)
public StringSplit(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input delimiter, @Const @ByRef tensorflow.StringSplit.Attrs attrs)
@ByVal public static tensorflow.StringSplit.Attrs SkipEmpty(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.StringSplit operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output indices()
public tensorflow.StringSplit indices(tensorflow.Output indices)
@ByRef public tensorflow.Output values()
public tensorflow.StringSplit values(tensorflow.Output values)
@ByRef public tensorflow.Output shape()
public tensorflow.StringSplit shape(tensorflow.Output shape)
Copyright © 2019. All rights reserved.