Class UserBufferEncodingIntN¶
Defined in File IUserBuffer.hpp
Inheritance Relationships¶
Base Type¶
public DlSystem::UserBufferEncoding(Class UserBufferEncoding)
Class Documentation¶
-
class UserBufferEncodingIntN : public DlSystem::UserBufferEncoding¶
Public Functions
-
UserBufferEncodingIntN(uint8_t bWidth = 32)¶
An encoding type where each element is represented by a Int.
Userbuffer size assumes int 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).
-
UserBufferEncodingIntN(const UserBufferEncoding &ubEncoding)¶
Copy Constructor for UserBufferEncodingIntN.
An encoding type where each element is represented by a Int
Userbuffer size assumes int 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 UserBufferEncodingIntN to copy
- Returns
a handle to a newly constructed UserBufferEncodingIntN
Public Static Functions
-
static ElementType_t getTypeFromWidth(uint8_t width)¶
Get the int type corresponding to a given bitwidth.
- Parameters
width – bitwidth of int type
- Returns
ElementType corresponding to a int of width bits
-
UserBufferEncodingIntN(uint8_t bWidth = 32)¶