Producer returns the Output that is connected to this Consumer.
()
| 185 | |
| 186 | // Producer returns the Output that is connected to this Consumer. |
| 187 | func (p Consumer) Producer() Output { |
| 188 | output := C.TF_OperationInput(p.c()) |
| 189 | return Output{ |
| 190 | Op: &Operation{ |
| 191 | c: output.oper, |
| 192 | g: p.Op.g, |
| 193 | }, |
| 194 | Index: int(output.index), |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | // Input is the interface for specifying inputs to an operation being added to |
| 199 | // a Graph. |