Class UserBufferEncodingUintN¶
Defined in File IUserBuffer.hpp
Inheritance Relationships¶
Base Type¶
public DlSystem::UserBufferEncoding(Class UserBufferEncoding)
Class Documentation¶
-
class UserBufferEncodingUintN : public DlSystem::UserBufferEncoding¶
Public Functions
-
UserBufferEncodingUintN(uint8_t bWidth = 32)¶
An encoding type where each element is represented by a Uint.
Userbuffer size assumes uint N encoding for each element. (i.e., a tensor with dimensions (2,3) with a provided bitwidth of 32 will be represented by (2 * 3) * 4 = 24 bytes in memory).
-
UserBufferEncodingUintN(const UserBufferEncoding &ubEncoding)¶
Copy Constructor for UserBufferEncodingUintN.
An encoding type where each element is represented by a Uint
Userbuffer size assumes uint N encoding for each element. (i.e., a tensor with dimensions (2,3) with a provided bitwidth of 32 will be represented by (2 * 3) * 4 = 24 bytes in memory).
- Parameters
otherHandle – the UserBufferEncodingUintN to copy
- Returns
a handle to a newly constructed UserBufferEncodingUintN
Public Static Functions
-
static ElementType_t getTypeFromWidth(uint8_t width)¶
Get the uint type corresponding to a given bitwidth.
- Parameters
width – bitwidth of uint type
- Returns
ElementType corresponding to a uint of width bits
-
UserBufferEncodingUintN(uint8_t bWidth = 32)¶