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

Function TFE_DeleteTensorHandle

tensorflow/c/eager/c_api.cc:469–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void TFE_DeleteTensorHandle(TFE_TensorHandle* h) {
470 if (h == nullptr) return;
471 VLOG(1) << "Deleting tensor handle " << h << " with internal handle "
472 << h->handle;
473 if (h->handle) {
474 h->handle->Unref();
475 }
476 delete h;
477}
478
479TF_DataType TFE_TensorHandleDataType(TFE_TensorHandle* h) {
480 return static_cast<TF_DataType>(h->handle->dtype);

Callers 15

EagerCastFunction · 0.85
EagerTensor_deallocFunction · 0.85
operator()Method · 0.85
EvaluateOperationFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
BM_InitOpFunction · 0.85
BM_ExecuteFunction · 0.85
BM_Execute_IdentityFunction · 0.85
TestRemoteExecuteFunction · 0.85

Calls 1

UnrefMethod · 0.45

Tested by 15

TESTFunction · 0.68
TEST_FFunction · 0.68
BM_InitOpFunction · 0.68
BM_ExecuteFunction · 0.68
BM_Execute_IdentityFunction · 0.68
TestRemoteExecuteFunction · 0.68
TESTFunction · 0.68