Class UserBufferEncoding¶
Defined in File IUserBuffer.hpp
Inheritance Relationships¶
Derived Types¶
public DlSystem::UserBufferEncodingBool(Class UserBufferEncodingBool)public DlSystem::UserBufferEncodingFloat(Class UserBufferEncodingFloat)public DlSystem::UserBufferEncodingFloatN(Class UserBufferEncodingFloatN)public DlSystem::UserBufferEncodingIntN(Class UserBufferEncodingIntN)public DlSystem::UserBufferEncodingTfN(Class UserBufferEncodingTfN)public DlSystem::UserBufferEncodingUintN(Class UserBufferEncodingUintN)public DlSystem::UserBufferEncodingUnsigned8Bit(Class UserBufferEncodingUnsigned8Bit)
Class Documentation¶
-
class UserBufferEncoding¶
Subclassed by DlSystem::UserBufferEncodingBool, DlSystem::UserBufferEncodingFloat, DlSystem::UserBufferEncodingFloatN, DlSystem::UserBufferEncodingIntN, DlSystem::UserBufferEncodingTfN, DlSystem::UserBufferEncodingUintN, DlSystem::UserBufferEncodingUnsigned8Bit
Public Types
-
enum class ElementType_t¶
An enum class of all supported element types in a IUserBuffer
Values:
-
enumerator UNKNOWN = 0¶
Unknown element type.
-
enumerator FLOAT = 1¶
Each element is presented by 32-bit float.
-
enumerator UNSIGNED8BIT = 2¶
Each element is presented by an unsigned int.
-
enumerator FLOAT16 = 3¶
Each element is presented by 16-bit float.
-
enumerator TF8 = 10¶
Each element is presented by an 8-bit quantized value.
-
enumerator TF16 = 11¶
Each element is presented by an 16-bit quantized value.
-
enumerator INT32 = 12¶
Each element is presented by Int32.
-
enumerator UINT32 = 13¶
Each element is presented by UInt32.
-
enumerator INT8 = 14¶
Each element is presented by Int8.
-
enumerator UINT8 = 15¶
Each element is presented by UInt8.
-
enumerator INT16 = 16¶
Each element is presented by Int16.
-
enumerator UINT16 = 17¶
Each element is presented by UInt16.
-
enumerator BOOL8 = 18¶
-
enumerator INT64 = 19¶
-
enumerator UINT64 = 20¶
-
enumerator UNKNOWN = 0¶
Public Functions
-
virtual ~UserBufferEncoding() = default¶
-
UserBufferEncoding(UserBufferEncoding &&other) noexcept¶
-
ElementType_t getElementType() const noexcept¶
Retrieves the element type.
- Returns
Element type
-
size_t getElementSize() const noexcept¶
Retrieves the size of the element, in bytes.
- Returns
Size of the element, in bytes.
-
enum class ElementType_t¶