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

Function TFE_TensorHandleNumDims

tensorflow/c/eager/c_api.cc:483–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483int TFE_TensorHandleNumDims(TFE_TensorHandle* h, TF_Status* status) {
484 if (h == nullptr || h->handle == nullptr) {
485 status->status = tensorflow::errors::InvalidArgument(
486 "The passed in handle is a nullptr");
487 return -1;
488 }
489 int result;
490 status->status = h->handle->NumDims(&result);
491 return result;
492}
493
494int64_t TFE_TensorHandleNumElements(TFE_TensorHandle* h, TF_Status* status) {
495 if (h == nullptr || h->handle == nullptr) {

Callers 7

EagerTensor_shape_tupleFunction · 0.85
EagerTensor_rankFunction · 0.85
TFE_Py_TensorShapeSliceFunction · 0.85
TESTFunction · 0.85
BM_ReadVariableFunction · 0.85
TensorShapeAsVectorFunction · 0.85

Calls 2

InvalidArgumentFunction · 0.85
NumDimsMethod · 0.45

Tested by 2

TESTFunction · 0.68
BM_ReadVariableFunction · 0.68