T - data type for output() output@Operator public final class Print<T> extends PrimitiveOp implements Operand<T>
Passes `input` through to `output` and prints `data` when evaluating.
| Modifier and Type | Class and Description |
|---|---|
static class |
Print.Options
Optional attributes for
Print |
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> Print<T> |
create(Scope scope,
Operand<T> input,
Iterable<Operand<?>> data,
Print.Options... options)
Factory method to create a class to wrap a new Print operation to the graph.
|
static Print.Options |
firstN(Long firstN) |
static Print.Options |
message(String message) |
Output<T> |
output()
= The unmodified `input` tensor
|
static Print.Options |
summarize(Long summarize) |
equals, hashCode, toStringpublic static <T> Print<T> create(Scope scope, Operand<T> input, Iterable<Operand<?>> data, Print.Options... options)
scope - current graph scopeinput - The tensor passed to `output`data - A list of tensors to print out when op is evaluated.options - carries optional attributes valuespublic static Print.Options message(String message)
message - A string, prefix of the error message.public static Print.Options firstN(Long firstN)
firstN - Only log `first_n` number of times. -1 disables logging.public static Print.Options summarize(Long summarize)
summarize - Only print this many entries of each tensor.public Output<T> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<T>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.