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

Method ShouldOwnKernel

tensorflow/core/framework/op_segment.cc:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool 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

Callers

nothing calls this directly

Calls 3

IsStatefulMethod · 0.45
FindMethod · 0.45

Tested by

no test coverage detected