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

Function UniqueConstantId

tensorflow/core/common_runtime/constant_folding.cc:353–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351typedef std::pair<Node*, int> NodeAndOutput;
352
353int64 UniqueConstantId() {
354 static std::atomic_int_fast64_t unique_constant_id;
355 return unique_constant_id.fetch_add(1);
356}
357
358// Adds n to constant_graph which is being built up for subsequent evaluation of
359// constant propagation. node_map is the mapping of nodes in the original graph

Callers 1

ConstantFoldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected