@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.StringLength extends Pointer
input.
Computes the length of each string given in the input tensor.
Arguments:
* scope: A Scope object
* input: The string for which to compute the length.
Optional attributes (see Attrs):
* unit: The unit that is counted to compute string length. One of: "BYTE" (for
the number of bytes in each string) or "UTF8_CHAR" (for the number of UTF-8
encoded Unicode code points in each string). Results are undefined
if unit=UTF8_CHAR and the input strings do not contain structurally
valid UTF-8.
Returns:
* Output: Integer tensor that has the same shape as input. The output contains the
element-wise string lengths of input.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.StringLength.Attrs
Optional attribute setters for StringLength
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
StringLength(Pointer p)
Pointer cast constructor.
|
StringLength(tensorflow.Scope scope,
tensorflow.Input input) |
StringLength(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.StringLength.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.StringLength |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.StringLength |
output(tensorflow.Output output) |
static tensorflow.StringLength.Attrs |
Unit(BytePointer x) |
static tensorflow.StringLength.Attrs |
Unit(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 StringLength(Pointer p)
Pointer.Pointer(Pointer).public StringLength(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input)
public StringLength(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @Const @ByRef tensorflow.StringLength.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.StringLength.Attrs Unit(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.StringLength.Attrs Unit(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.StringLength operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.StringLength output(tensorflow.Output output)
Copyright © 2019. All rights reserved.