tensorflow::ops::Print::Attrs

#include <logging_ops.h>

Optional attribute setters for Print.

Summary

Public attributes
first_n_ = -1
int64
message_ = ""
StringPiece
summarize_ = 3
int64
Public functions
FirstN(int64 x)
TF_MUST_USE_RESULT Attrs
Only log first_n number of times.
Message(StringPiece x)
TF_MUST_USE_RESULT Attrs
A string, prefix of the error message.
Summarize(int64 x)
TF_MUST_USE_RESULT Attrs
Only print this many entries of each tensor.

Public attributes

first_n_

int64 tensorflow::ops::Print::Attrs::first_n_ = -1

message_

StringPiece tensorflow::ops::Print::Attrs::message_ = ""

summarize_

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

Public functions

FirstN

TF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::FirstN(
  int64 x
)

Only log first_n number of times.

-1 disables logging.

Defaults to -1

Message

TF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::Message(
  StringPiece x
)

A string, prefix of the error message.

Defaults to ""

Summarize

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

Only print this many entries of each tensor.

Defaults to 3

© 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/struct/tensorflow/ops/print/attrs