@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class AsString extends Pointer
Converts each entry in the given tensor to strings.
Supports many numeric types and boolean.
For Unicode, see the
[https://www.tensorflow.org/tutorials/representation/unicode](Working with Unicode text)
tutorial.
Arguments:
* scope: A Scope object
Optional attributes (see Attrs
):
* precision: The post-decimal precision to use for floating point numbers.
Only used if precision > -1.
* scientific: Use scientific notation for floating point numbers.
* shortest: Use shortest representation (either scientific or standard) for
floating point numbers.
* width: Pad pre-decimal numbers to this width.
Applies to both floating point and integer numbers.
Only used if width > -1.
* fill: The value to pad if width > -1. If empty, pads with spaces.
Another typical value is '0'. String cannot be longer than 1 character.
Returns:
* Output
: The output tensor.
Modifier and Type | Class and Description |
---|---|
static class |
AsString.Attrs
Optional attribute setters for AsString
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AsString(Pointer p)
Pointer cast constructor.
|
AsString(Scope scope,
Input input) |
AsString(Scope scope,
Input input,
AsString.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static AsString.Attrs |
Fill(BytePointer x) |
static AsString.Attrs |
Fill(String x) |
Node |
node() |
Operation |
operation() |
AsString |
operation(Operation setter) |
Output |
output() |
AsString |
output(Output setter) |
static AsString.Attrs |
Precision(long x) |
static AsString.Attrs |
Scientific(boolean x) |
static AsString.Attrs |
Shortest(boolean x) |
static AsString.Attrs |
Width(long 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 AsString(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static AsString.Attrs Precision(@Cast(value="tensorflow::int64") long x)
@ByVal public static AsString.Attrs Scientific(@Cast(value="bool") boolean x)
@ByVal public static AsString.Attrs Shortest(@Cast(value="bool") boolean x)
@ByVal public static AsString.Attrs Width(@Cast(value="tensorflow::int64") long x)
@ByVal public static AsString.Attrs Fill(@tensorflow.StringPiece BytePointer x)
@ByVal public static AsString.Attrs Fill(@tensorflow.StringPiece String x)
Copyright © 2022. All rights reserved.