| 351 | typedef std::pair<Node*, int> NodeAndOutput; |
| 352 | |
| 353 | int64 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 |