| 441 | } |
| 442 | |
| 443 | Status 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 | |
| 457 | Status ValidateSavedTensors(const GraphDef& graph_def) { |
no test coverage detected