AsString
tensorflow C++ API
Converts each entry in the given tensor to strings.
Summary
Supports many numeric.
types and boolean.
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.
AsString block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_string.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input input: connect Input node.
- AsString ::Attrs attrs : Input attrs in value. ex) precision_= -1;scientific_= false;shortest_= false;width_= -1;fill_ = ;
Return:
- Output output : Output object of AsString class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.