W3cubDocs

/TensorFlow C++

tensorflow::ops::EncodeBase64

#include <string_ops.h>

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:

Constructors and Destructors
EncodeBase64(const ::tensorflow::Scope & scope, ::tensorflow::Input input)
EncodeBase64(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const EncodeBase64::Attrs & attrs)
Public attributes
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Pad(bool x)
Structs
tensorflow::ops::EncodeBase64::Attrs

Optional attribute setters for EncodeBase64.

Public attributes

output

::tensorflow::Output output

Public functions

EncodeBase64

 EncodeBase64(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

EncodeBase64

 EncodeBase64(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const EncodeBase64::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Pad

Attrs Pad(
  bool x
)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/encode-base64.html