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

Function TF_GetAllOpList

tensorflow/c/c_api.cc:573–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573TF_Buffer* TF_GetAllOpList() {
574 std::vector<tensorflow::OpDef> op_defs;
575 tensorflow::OpRegistry::Global()->GetRegisteredOps(&op_defs);
576 tensorflow::OpList op_list;
577 for (const auto& op : op_defs) {
578 *(op_list.add_op()) = op;
579 }
580 TF_Buffer* ret = TF_NewBuffer();
581 TF_CHECK_OK(MessageToBuffer(op_list, ret));
582 return ret;
583}
584
585// --------------------------------------------------------------------------
586// ListDevices & SessionListDevices API

Callers 3

TESTFunction · 0.85
TESTFunction · 0.85

Calls 4

TF_NewBufferFunction · 0.85
MessageToBufferFunction · 0.85
GetRegisteredOpsMethod · 0.80
add_opMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68