numDims returns the number of dimensions of the TensorHandle. It blocks until the operation that produces the handle has completed.
()
| 89 | // numDims returns the number of dimensions of the TensorHandle. It blocks |
| 90 | // until the operation that produces the handle has completed. |
| 91 | func (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. |