W3cubDocs

/TensorFlow C++ 2.4

tensorflow::ops::StringFormat

#include <string_ops.h>

Formats a string template using a list of tensors.

Summary

Formats a string template using a list of tensors, pretty-printing tensor summaries.

Arguments:

  • scope: A Scope object
  • inputs: The list of tensors to format into the placeholder string.

Optional attributes (see Attrs):

  • template_: A string, the template to format tensor summaries into.
  • placeholder: A string, at each placeholder in the template a subsequent tensor summary will be inserted.
  • summarize: When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.

Returns:

  • Output: = The resulting string scalar.
Constructors and Destructors
StringFormat(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs)
StringFormat(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs, const StringFormat::Attrs & attrs)
Public attributes
operation
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Placeholder(StringPiece x)
Summarize(int64 x)
Template(StringPiece x)
Structs
tensorflow::ops::StringFormat::Attrs

Optional attribute setters for StringFormat.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

StringFormat

 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)

StringFormat

 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs,
  const StringFormat::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Placeholder

Attrs Placeholder(
  StringPiece x
)

Summarize

Attrs Summarize(
  int64 x
)

Template

Attrs Template(
  StringPiece x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/string-format