W3cubDocs

/TensorFlow C++

tensorflow::ops::AsString

#include <string_ops.h>

Converts each entry in the given tensor to strings.

Summary

Supports many numeric

types and boolean.

Arguments:

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:

Constructors and Destructors
AsString(const ::tensorflow::Scope & scope, ::tensorflow::Input input)
AsString(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const AsString::Attrs & attrs)
Public attributes
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Fill(StringPiece x)
Precision(int64 x)
Scientific(bool x)
Shortest(bool x)
Width(int64 x)
Structs
tensorflow::ops::AsString::Attrs

Optional attribute setters for AsString.

Public attributes

output

::tensorflow::Output output

Public functions

AsString

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

AsString

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

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Fill

Attrs Fill(
  StringPiece x
)

Precision

Attrs Precision(
  int64 x
)

Scientific

Attrs Scientific(
  bool x
)

Shortest

Attrs Shortest(
  bool x
)

Width

Attrs Width(
  int64 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/as-string.html