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)
| 42823 | // |
| 42824 | // Returns = The unmodified `input` tensor |
| 42825 | func 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. |
| 42845 | func OptionalGetValue(scope *Scope, optional tf.Output, output_types []tf.DataType, output_shapes []tf.Shape) (components []tf.Output) { |
no test coverage detected