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

Function TFE_TensorHandleDim

tensorflow/c/eager/c_api.cc:505–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505int64_t TFE_TensorHandleDim(TFE_TensorHandle* h, int dim_index,
506 TF_Status* status) {
507 if (h == nullptr || h->handle == nullptr) {
508 status->status = tensorflow::errors::InvalidArgument(
509 "The passed in handle is a nullptr");
510 return -1;
511 }
512 tensorflow::int64 result;
513 status->status = h->handle->Dim(dim_index, &result);
514 return result;
515}
516
517const char* TFE_TensorHandleDeviceName(TFE_TensorHandle* h, TF_Status* status) {
518 if (h == nullptr || h->handle == nullptr) {

Callers 5

EagerTensor_shape_tupleFunction · 0.85
TFE_Py_TensorShapeSliceFunction · 0.85
TESTFunction · 0.85
TensorShapeAsVectorFunction · 0.85

Calls 2

InvalidArgumentFunction · 0.85
DimMethod · 0.45

Tested by 1

TESTFunction · 0.68