()
| 170 | } |
| 171 | |
| 172 | func (p Consumer) c() C.TF_Input { |
| 173 | if p.Op == nil { |
| 174 | // Attempt to provide a more useful panic message than "nil |
| 175 | // pointer dereference". |
| 176 | panic("nil-Operation. Consumer objects should only be created by a call to Output.Consumers") |
| 177 | } |
| 178 | return C.TF_Input{oper: p.Op.c, index: C.int(p.Index)} |
| 179 | } |
| 180 | |
| 181 | // DataType returns the type of the input. |
| 182 | func (p Consumer) DataType() DataType { |