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

Function TF_OpIsStateful

tensorflow/c/c_api_experimental.cc:726–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726int TF_OpIsStateful(const char* op_type, TF_Status* status) {
727 const tensorflow::OpRegistrationData* op_reg_data;
728 status->status =
729 tensorflow::OpRegistry::Global()->LookUp(op_type, &op_reg_data);
730 if (!status->status.ok()) {
731 return 0;
732 }
733 return op_reg_data->op_def.is_stateful();
734}
735
736void TF_InitMain(const char* usage, int* argc, char*** argv) {
737 tensorflow::port::InitMain(usage, argc, argv);

Callers 1

TESTFunction · 0.85

Calls 3

LookUpMethod · 0.45
okMethod · 0.45
is_statefulMethod · 0.45

Tested by 1

TESTFunction · 0.68