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

Function CanGenerateOp

tensorflow/java/src/gen/cc/op_generator.cc:517–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517bool CanGenerateOp(const OpDef& op_def, const ApiDef& api_def) {
518 if (api_def.visibility() == ApiDef::SKIP) {
519 return false;
520 }
521 for (const auto& attr : op_def.attr()) {
522 if (attr.type() == "func" || attr.type() == "list(func)") {
523 return false; // TODO(karllessard) add support for function attributes
524 }
525 }
526 return true;
527}
528
529} // namespace
530

Callers 1

RunMethod · 0.85

Calls 2

attrMethod · 0.80
typeMethod · 0.65

Tested by

no test coverage detected