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

Function TF_GraphOperationByName

tensorflow/c/c_api.cc:1537–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1535}
1536
1537TF_Operation* TF_GraphOperationByName(TF_Graph* graph, const char* oper_name) {
1538 mutex_lock l(graph->mu);
1539 auto iter = graph->name_map.find(oper_name);
1540 if (iter == graph->name_map.end()) {
1541 return nullptr;
1542 } else {
1543 return ToOperation(iter->second);
1544 }
1545}
1546
1547TF_Operation* TF_GraphNextOperation(TF_Graph* graph, size_t* pos) {
1548 if (*pos == 0) {

Callers 5

TEST_FFunction · 0.85
TF_DequeueNamedTensorFunction · 0.85
TF_EnqueueNamedTensorFunction · 0.85
TESTFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68