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

Function TFE_NewTensorHandle

tensorflow/c/eager/c_api.cc:462–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462TFE_TensorHandle* TFE_NewTensorHandle(TF_Tensor* t, TF_Status* status) {
463 tensorflow::Tensor tensor;
464 status->status = tensorflow::TF_TensorToTensor(t, &tensor);
465 if (!status->status.ok()) return nullptr;
466 return TFE_TensorHandle::CreateLocalHandle(tensor, status);
467}
468
469void TFE_DeleteTensorHandle(TFE_TensorHandle* h) {
470 if (h == nullptr) return;

Callers 12

TFE_Py_TensorShapeSliceFunction · 0.85
EvaluateOperationFunction · 0.85
TestScalarTensorHandleFunction · 0.85
TestMatrixTensorHandleFunction · 0.85
TestAxisTensorHandleFunction · 0.85
CreateVariableFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

TF_TensorToTensorFunction · 0.85
okMethod · 0.45

Tested by 10

TestScalarTensorHandleFunction · 0.68
TestMatrixTensorHandleFunction · 0.68
TestAxisTensorHandleFunction · 0.68
CreateVariableFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68