| 101 | } |
| 102 | |
| 103 | bool OpSegment::ShouldOwnKernel(FunctionLibraryRuntime* lib, |
| 104 | const string& node_op) { |
| 105 | // OpSegment should not own kernel if the node is stateless, or a function. |
| 106 | return lib->IsStateful(node_op) && |
| 107 | lib->GetFunctionLibraryDefinition()->Find(node_op) == nullptr && |
| 108 | node_op != "PartitionedCall" && node_op != "StatefulPartitionedCall"; |
| 109 | } |
| 110 | |
| 111 | } // end namespace tensorflow |
nothing calls this directly
no test coverage detected