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

Method addSlice

include/NvInfer.h:7636–7639  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers 1

addLSTMCellMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected