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

Method OutputListSize

tensorflow/go/operation.go:61–67  ·  view source on GitHub ↗

OutputListSize returns the size of the list of Outputs that is produced by a named output of op. An Operation has multiple named outputs, each of which produces either a single tensor or a list of tensors. This method returns the size of the list of tensors for a specific output of the operation, i

(output string)

Source from the content-addressed store, hash-verified

59// the list of tensors for a specific output of the operation, identified
60// by its name.
61func (op *Operation) OutputListSize(output string) (int, error) {
62 cname := C.CString(output)
63 defer C.free(unsafe.Pointer(cname))
64 status := newStatus()
65 n := C.TF_OperationOutputListLength(op.c, cname, status.c)
66 return int(n), status.Err()
67}
68
69// Output returns the i-th output of op.
70func (op *Operation) Output(i int) Output {

Callers 2

makeOutputListFunction · 0.80

Calls 3

newStatusFunction · 0.85
freeMethod · 0.80
ErrMethod · 0.45

Tested by 1