\class Dims4 \brief Descriptor for four-dimensional data.
| 164 | //! \brief Descriptor for four-dimensional data. |
| 165 | //! |
| 166 | class Dims4 : public Dims3 |
| 167 | { |
| 168 | public: |
| 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 |
no outgoing calls
no test coverage detected