MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / addIterator

Method addIterator

include/NvInfer.h:5698–5701  ·  view source on GitHub ↗

\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.

Source from the content-addressed store, hash-verified

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 //!

Callers 1

addLSTMCellMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected