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

Function GetOpDef

tensorflow/c/eager/c_api.cc:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78namespace {
79
80const tensorflow::OpDef* GetOpDef(TFE_Op* op, TF_Status* status) {
81 if (op->inference_ctx) {
82 return op->inference_ctx->op_def;
83 }
84 const tensorflow::OpDef* op_def;
85 status->status =
86 tensorflow::OpDefForOp(op->operation.Name().c_str(), &op_def);
87 return op_def;
88}
89
90bool IsCPU(const tensorflow::Device* d) {
91 return d == nullptr || d->tensorflow_gpu_device_info() == nullptr;

Callers 2

TFE_OpGetInputLengthFunction · 0.70
TFE_OpGetOutputLengthFunction · 0.70

Calls 3

OpDefForOpFunction · 0.85
c_strMethod · 0.80
NameMethod · 0.45

Tested by

no test coverage detected