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

Method Producer

tensorflow/go/operation.go:187–196  ·  view source on GitHub ↗

Producer returns the Output that is connected to this Consumer.

()

Source from the content-addressed store, hash-verified

185
186// Producer returns the Output that is connected to this Consumer.
187func (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.

Callers 1

TestOperationConsumersFunction · 0.80

Calls 1

cMethod · 0.95

Tested by 1

TestOperationConsumersFunction · 0.64