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

Function TF_RegisterOpDefinition

tensorflow/c/ops.cc:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void TF_RegisterOpDefinition(TF_OpDefinitionBuilder* builder,
76 TF_Status* status) {
77 auto* cc_builder = reinterpret_cast<OpDefBuilder*>(builder);
78 TF_SetStatus(status, TF_OK, "");
79 ::tensorflow::OpRegistry::Global()->Register(
80 [cc_builder](::tensorflow::OpRegistrationData* op_reg_data) -> Status {
81 Status result = cc_builder->Finalize(op_reg_data);
82 delete cc_builder;
83 return result;
84 });
85}
86
87void TF_OpDefinitionBuilderSetShapeInferenceFunction(
88 TF_OpDefinitionBuilder* builder,

Callers 2

TESTFunction · 0.85
RegisterBitcastOpFunction · 0.85

Calls 3

TF_SetStatusFunction · 0.85
RegisterMethod · 0.45
FinalizeMethod · 0.45

Tested by 1

TESTFunction · 0.68