Class UserBufferEncodingFloatN¶
Defined in File IUserBuffer.hpp
Inheritance Relationships¶
Base Type¶
public DlSystem::UserBufferEncoding(Class UserBufferEncoding)
Class Documentation¶
-
class UserBufferEncodingFloatN : public DlSystem::UserBufferEncoding¶
Public Functions
-
UserBufferEncodingFloatN(uint8_t bWidth = 32)¶
An encoding type where each element is represented by a float N.
Userbuffer size assumes float N encoding for each element. (i.e., a tensor with dimensions (2,3) with a provided bitwidth of 16 will be represented by (2 * 3) * 2 = 12 bytes in memory).
- Parameters
bWidth – [in] is bitWidth N.
-
UserBufferEncodingFloatN(const UserBufferEncodingFloatN &other)¶
Copy Constructor for UserBufferEncodingFloatN.
An encoding type where each element is represented by a float N
Userbuffer size assumes float N encoding for each element. (i.e., a tensor with dimensions (2,3) with a provided bitwidth of 16 will be represented by (2 * 3) * 2 = 12 bytes in memory).
- Parameters
other – [in] : Source UserBufferEncodingFloatN to copy from
- Returns
a handle to the constructed UserBufferEncodingFloatN
-
UserBufferEncoding(UserBufferEncoding &&other) noexcept¶
Public Static Functions
-
static ElementType_t getTypeFromWidth(uint8_t width)¶
-
UserBufferEncodingFloatN(uint8_t bWidth = 32)¶