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

Function TFE_TensorHandlePrintDebugString

tensorflow/c/c_api_experimental.cc:517–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void TFE_TensorHandlePrintDebugString(TFE_TensorHandle* handle) {
518 auto* status = TF_NewStatus();
519 if (!TFE_TensorHandleIsConcrete(handle)) {
520 VLOG(1) << "Symbolic tensor: " << handle;
521 TF_DeleteStatus(status);
522 return;
523 }
524
525 TF_Tensor* t = TFE_TensorHandleResolve(handle, status);
526 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
527
528 tensorflow::Tensor dst;
529 TF_CHECK_OK(TF_TensorToTensor(t, &dst));
530 LOG(INFO) << dst.DebugString();
531
532 TF_DeleteTensor(t);
533 TF_DeleteStatus(status);
534}
535
536void TFE_OpPrintDebugString(TFE_Op* op) {
537 VLOG(1) << "TFE_OpPrintDebugString() over " << op;

Callers 2

TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 9

TF_NewStatusFunction · 0.85
TF_DeleteStatusFunction · 0.85
TFE_TensorHandleResolveFunction · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85
TF_TensorToTensorFunction · 0.85
TF_DeleteTensorFunction · 0.85
DebugStringMethod · 0.45

Tested by 2

TESTFunction · 0.68
TEST_FFunction · 0.68