| 92 | } |
| 93 | |
| 94 | void TFOp::Build() { |
| 95 | for (auto& tn : tfcnodes_map_) { |
| 96 | cnodes_map_[tn.first] = |
| 97 | std::unique_ptr<OpNode>(new OpNode(tn.second.get())); |
| 98 | } |
| 99 | |
| 100 | tfcnodes_map_[kTFProfRoot] = |
| 101 | std::unique_ptr<TFMultiGraphNode>(new TFMultiGraphNode(kTFProfRoot)); |
| 102 | root_.reset(new OpNode(tfcnodes_map_[kTFProfRoot].get())); |
| 103 | } |
| 104 | |
| 105 | const ShowMultiNode* TFOp::ShowInternal(const Options& opts, |
| 106 | Timeline* timeline) { |