W3cubDocs

/TensorFlow C++ 1.15

tensorflow::ops::StringFormat::Attrs

#include <string_ops.h>

Optional attribute setters for StringFormat.

Summary

Public attributes
placeholder_ = "%s"
StringPiece
summarize_ = 3
int64
template_ = "%s"
StringPiece
Public functions
Placeholder(StringPiece x)
TF_MUST_USE_RESULT Attrs
A string, at each placeholder in the template a subsequent tensor summary will be inserted.
Summarize(int64 x)
TF_MUST_USE_RESULT Attrs
When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.
Template(StringPiece x)
TF_MUST_USE_RESULT Attrs
A string, the template to format tensor summaries into.

Public attributes

placeholder_

StringPiece tensorflow::ops::StringFormat::Attrs::placeholder_ = "%s"

summarize_

int64 tensorflow::ops::StringFormat::Attrs::summarize_ = 3

template_

StringPiece tensorflow::ops::StringFormat::Attrs::template_ = "%s"

Public functions

Placeholder

TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Placeholder(
  StringPiece x
)

A string, at each placeholder in the template a subsequent tensor summary will be inserted.

Defaults to "%s"

Summarize

TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Summarize(
  int64 x
)

When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.

Defaults to 3

Template

TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Template(
  StringPiece x
)

A string, the template to format tensor summaries into.

Defaults to "%s"

© 2020 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/versions/r1.15/api_docs/cc/struct/tensorflow/ops/string-format/attrs