Class UserBufferEncodingTf8¶
Defined in File IUserBuffer.hpp
Inheritance Relationships¶
Base Type¶
public DlSystem::UserBufferEncodingTfN(Class UserBufferEncodingTfN)
Class Documentation¶
-
class UserBufferEncodingTf8 : public DlSystem::UserBufferEncodingTfN¶
Public Functions
-
UserBufferEncodingTf8() = delete¶
-
template<typename T, typename U, typename std::enable_if<std::is_integral<T>::value && std::is_floating_point<U>::value, int>::type = 0>
UserBufferEncodingTf8(T stepFor0, U stepSize)¶
-
UserBufferEncodingTf8(const UserBufferEncoding &ubEncoding)¶
-
template<typename T, typename U, typename std::enable_if<std::is_integral<T>::value && std::is_floating_point<U>::value, int>::type = 0>
UserBufferEncodingTfN(T stepFor0, U stepSize, uint8_t bWidth = 8)¶ An encoding type where each element is represented by tfN, which is an N-bit quantized value, which has an exact representation of 0.0.
Userbuffer size assumes tf 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).
-
UserBufferEncodingTfN(const UserBufferEncoding &ubEncoding)¶
Copy Constructor for UserBufferEncodingTfN.
An encoding type where each element is represented by tfN, which is an N-bit quantized value, which has an exact representation of 0.0
Userbuffer size assumes tf 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
otherHandle – the UserBufferEncodingTfN to copy
- Returns
a handle to a newly constructed UserBufferEncodingTfN
-
UserBufferEncodingTfN(const UserBufferEncodingTfN &ubEncoding)¶
Copy Constructor for UserBufferEncodingTfN.
An encoding type where each element is represented by tfN, which is an N-bit quantized value, which has an exact representation of 0.0
Userbuffer size assumes tf 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
otherHandle – the UserBufferEncodingTfN to copy
- Returns
a handle to a newly constructed UserBufferEncodingTfN
-
UserBufferEncodingTf8() = delete¶