EncodeBase64
tensorflow C++ API
Encode strings into web-safe base64 format.
Summary
Refer to the following article for more information on base64 format: en.wikipedia.org/wiki/Base64. Base64 strings may have padding with ‘=’ at the end so that the encoded has length multiple of 4. See Padding section of the link above.
Web-safe means that the encoder uses - and _ instead of + and /.
Arguments:
- scope: A Scope object
- input: Strings to be encoded.
Optional attributes (see Attrs
):
- pad: Bool whether padding is applied at the ends.
Returns:
EncodeBase64 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.
- EncodeBase64::Attrs attrs : Input attrs in value. ex) pad_ = false;
Return:
- Output output : Output object of EncodeBase64 class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.