\brief Add a slice layer to the network. \param input The input tensor to the layer. \param start The start offset \param size The output dimension \param stride The slicing stride Positive, negative, zero stride values, and combinations of them in different dimensions are allowed. \see ISliceLayer \return The new slice layer, or nullptr if it could not be created.
| 7634 | //! \return The new slice layer, or nullptr if it could not be created. |
| 7635 | //! |
| 7636 | ISliceLayer* addSlice(ITensor& input, Dims start, Dims size, Dims stride) noexcept |
| 7637 | { |
| 7638 | return mImpl->addSlice(input, start, size, stride); |
| 7639 | } |
| 7640 | |
| 7641 | //! |
| 7642 | //! \brief Sets the name of the network. |