\brief Return layer that subscripts tensor by loop iteration. For reverse=false, this is equivalent to addGather(tensor, I, 0) where I is a scalar tensor containing the loop iteration number. For reverse=true, this is equivalent to addGather(tensor, M-1-I, 0) where M is the trip count computed from TripLimits of kind kCOUNT.
| 5696 | //! computed from TripLimits of kind kCOUNT. |
| 5697 | //! |
| 5698 | IIteratorLayer* addIterator(ITensor& tensor, int32_t axis = 0, bool reverse = false) noexcept |
| 5699 | { |
| 5700 | return mImpl->addIterator(tensor, axis, reverse); |
| 5701 | } |
| 5702 | |
| 5703 | //! \brief Make an output for this loop, based on the given tensor. |
| 5704 | //! |