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

Function HasSideEffectingNodes

tensorflow/compiler/tf2xla/side_effect_util.cc:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool HasSideEffectingNodes(const Graph& g) {
104 for (Node* n : g.nodes()) {
105 std::vector<string> token_input_nodes;
106 if (GetNodeAttr(n->attrs(), kXlaTokenInputNodesAttrName, &token_input_nodes)
107 .ok() &&
108 !token_input_nodes.empty()) {
109 return true;
110 }
111 }
112 return false;
113}
114
115Status ParseHostComputeCoreList(absl::Span<const string> list_from_attr,
116 std::map<string, int>* host_compute_core) {

Callers 1

CompileGraphMethod · 0.85

Calls 5

GetNodeAttrFunction · 0.50
nodesMethod · 0.45
okMethod · 0.45
attrsMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected