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

Function TF_CheckpointReaderGetTensor

tensorflow/c/c_api_experimental.cc:634–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634TF_Tensor* TF_CheckpointReaderGetTensor(TF_CheckpointReader* reader,
635 const char* name, TF_Status* status) {
636 std::unique_ptr<tensorflow::Tensor> tensor;
637 reader->GetTensor(name, &tensor, status);
638 if (!status->status.ok()) return nullptr;
639 return tensorflow::TF_TensorFromTensor(*tensor, status);
640}
641
642void TF_CheckpointReaderGetVariableShape(TF_CheckpointReader* reader,
643 const char* name, int64_t* dims,

Callers

nothing calls this directly

Calls 3

TF_TensorFromTensorFunction · 0.85
GetTensorMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected