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

Function ValidateFunctionNotRecursive

serving/processor/serving/util.cc:443–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443Status ValidateFunctionNotRecursive(const FunctionDef& function) {
444 const auto& function_name = function.signature().name();
445 for (const auto& node : function.node_def()) {
446 if (node.op() == function_name) {
447 return errors::FailedPrecondition(
448 "Function ", function_name,
449 " is self recursive and TensorFlow does not support this scenario.");
450 }
451 }
452
453 return Status::OK();
454}
455}
456
457Status ValidateSavedTensors(const GraphDef& graph_def) {

Callers 1

ValidateSavedTensorsFunction · 0.70

Calls 5

FailedPreconditionFunction · 0.85
signatureMethod · 0.80
nameMethod · 0.65
node_defMethod · 0.45
opMethod · 0.45

Tested by

no test coverage detected