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

Method numDims

tensorflow/go/tensor_handle.go:91–95  ·  view source on GitHub ↗

numDims returns the number of dimensions of the TensorHandle. It blocks until the operation that produces the handle has completed.

()

Source from the content-addressed store, hash-verified

89// numDims returns the number of dimensions of the TensorHandle. It blocks
90// until the operation that produces the handle has completed.
91func (th *TensorHandle) numDims() (int, error) {
92 status := newStatus()
93 n := int(C.TFE_TensorHandleNumDims(th.c, status.c))
94 return n, status.Err()
95}
96
97// dim returns the size of the index'th dimension of the TensorHandle. It
98// blocks until the operation that produces the handle has completed.

Callers 1

ShapeMethod · 0.95

Calls 2

newStatusFunction · 0.85
ErrMethod · 0.45

Tested by

no test coverage detected