Gets the computations in this module. Returns a view of HloComputation*s, so you can iterate over this in the natural way: for (HloComputation* c : module->computations()) { ... }
| 156 | // for (HloComputation* c : module->computations()) { ... } |
| 157 | // |
| 158 | tensorflow::gtl::iterator_range<UnwrappingIterator< |
| 159 | std::vector<std::unique_ptr<HloComputation>>::const_iterator>> |
| 160 | computations() const { |
| 161 | return {MakeUnwrappingIterator(computations_.begin()), |
| 162 | MakeUnwrappingIterator(computations_.end())}; |
| 163 | } |
| 164 | tensorflow::gtl::iterator_range<UnwrappingIterator< |
| 165 | std::vector<std::unique_ptr<HloComputation>>::iterator>> |
| 166 | computations() { |