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

Class Dims4

include/NvInferLegacyDims.h:166–191  ·  view source on GitHub ↗

\class Dims4 \brief Descriptor for four-dimensional data.

Source from the content-addressed store, hash-verified

164//! \brief Descriptor for four-dimensional data.
165//!
166class Dims4 : public Dims3
167{
168public:
169 //!
170 //! \brief Construct an empty Dims4 object.
171 //!
172 Dims4()
173 : Dims4(0, 0, 0, 0)
174 {
175 }
176
177 //!
178 //! \brief Construct a Dims4 from 4 elements.
179 //!
180 //! \param d0 The first element.
181 //! \param d1 The second element.
182 //! \param d2 The third element.
183 //! \param d3 The fourth element.
184 //!
185 Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
186 : Dims3(d0, d1, d2)
187 {
188 nbDims = 4;
189 d[3] = d3;
190 }
191};
192
193} // namespace nvinfer1
194

Callers 2

getOutputDimensionsMethod · 0.85
getOutputDimensionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected