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

Function AddControlConst

tensorflow/core/graph/graph_partition.cc:671–677  ·  view source on GitHub ↗

A dummy const node for control flow.

Source from the content-addressed store, hash-verified

669
670// A dummy const node for control flow.
671Node* AddControlConst(const string& device_name,
672 const GraphDefBuilder::Options& bopts) {
673 Node* res_node = EmptyConst(bopts);
674 if (bopts.HaveError()) return nullptr;
675 res_node->set_assigned_device_name(device_name);
676 return res_node;
677}
678
679// A synthetic loop, made up of dummy nodes. It performs control-flow actions
680// on behalf of a leader on a different device.

Callers 1

AddControlFlowFunction · 0.85

Calls 3

EmptyConstFunction · 0.85
HaveErrorMethod · 0.80

Tested by

no test coverage detected