| 
    NVIDIA NvNeural SDK
    2022.1
    
   GPU inference framework for NVIDIA Nsight Deep Learning Designer 
   | 
 
TensorDimension describes the dimensions of a four-dimensional image tensor. More...
#include <nvneural/CoreTypes.h>
Public Member Functions | |
| std::size_t | elementCount () const | 
| Returns the number of elements in a tensor with these dimensions.  More... | |
| bool | operator!= (const TensorDimension &other) const | 
| Inequality operator.  | |
| TensorDimension & | operator= (const TensorDimension ©From) | 
| Copy assignment operator.  | |
| bool | operator== (const TensorDimension &other) const | 
| Equality operator.  | |
| TensorDimension ()=default | |
| Default constructor. Initializes all members to zero.  | |
| TensorDimension (const TensorDimension ©From) | |
| Copy constructor.  | |
| TensorDimension (size_t N, size_t C, size_t H, size_t W) | |
| Direct constructor, specifying all members at once.  | |
| ~TensorDimension ()=default | |
| Trivial destructor.  | |
Public Attributes | |
| size_t | c = 0 | 
| C dimension (channel)  | |
| size_t | h = 0 | 
| H dimension (height)  | |
| size_t | n = 0 | 
| N dimension (batch)  | |
| size_t | w = 0 | 
| W dimension (width)  | |
TensorDimension describes the dimensions of a four-dimensional image tensor.
Its member functions are provided for convenience and may change implementations between versions of the nvneural SDK, but the binary layout of this type will remain constant.
      
  | 
  inline | 
Returns the number of elements in a tensor with these dimensions.
This can be used to compute buffer size by multiplying by sizeof(element).