\brief Add a pooling layer to the network. \param input The input tensor to the layer. \param type The type of pooling to apply. \param windowSize The size of the pooling window. \see IPoolingLayer PoolingType \warning Int32 tensors are not valid input tensors. \return The new pooling layer, or nullptr if it could not be created. \deprecated Superseded by addPoolingNd. Deprecated prior to Tens
| 7001 | //! \deprecated Superseded by addPoolingNd. Deprecated prior to TensorRT 8.0 and will be removed in 9.0 |
| 7002 | //! |
| 7003 | TRT_DEPRECATED IPoolingLayer* addPooling(ITensor& input, PoolingType type, DimsHW windowSize) noexcept |
| 7004 | { |
| 7005 | return mImpl->addPooling(input, type, windowSize); |
| 7006 | } |
| 7007 | |
| 7008 | //! |
| 7009 | //! \brief Add a LRN layer to the network. |