MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Print

Function Print

tensorflow/go/op/wrappers.go:42825–42842  ·  view source on GitHub ↗

Prints a list of tensors. Passes `input` through to `output` and prints `data` when evaluating. Arguments: input: The tensor passed to `output` data: A list of tensors to print out when op is evaluated. Returns = The unmodified `input` tensor

(scope *Scope, input tf.Output, data []tf.Output, optional ...PrintAttr)

Source from the content-addressed store, hash-verified

42823//
42824// Returns = The unmodified `input` tensor
42825func Print(scope *Scope, input tf.Output, data []tf.Output, optional ...PrintAttr) (output tf.Output) {
42826 if scope.Err() != nil {
42827 return
42828 }
42829 attrs := map[string]interface{}{}
42830 for _, a := range optional {
42831 a(attrs)
42832 }
42833 opspec := tf.OpSpec{
42834 Type: "Print",
42835 Input: []tf.Input{
42836 input, tf.OutputList(data),
42837 },
42838 Attrs: attrs,
42839 }
42840 op := scope.AddOperation(opspec)
42841 return op.Output(0)
42842}
42843
42844// Returns the value stored in an Optional variant or raises an error if none exists.
42845func OptionalGetValue(scope *Scope, optional tf.Output, output_types []tf.DataType, output_shapes []tf.Shape) (components []tf.Output) {

Callers 8

AppendFieldAppendMethod · 0.50
AppendEnumFunctionsMethod · 0.50
GenerateMethod · 0.50

Calls 4

aClass · 0.85
ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected