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

Method Id

tensorflow/core/graph/costmodel.h:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 bool is_global() const { return is_global_; }
60
61 inline int Id(const Node* n) const {
62 if (is_global_) {
63 return n->cost_id();
64 } else {
65 return n->id();
66 }
67 }
68
69 // Initializes cost model for 'g'.
70 void InitFromGraph(const Graph& g);

Callers 1

MergeFromLocalMethod · 0.45

Calls 2

cost_idMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected