ONE - On-device Neural Engine
|
#include <Constant.h>
Public Member Functions | |
ConstantUint4DataChef (const uint8_t &value) | |
std::vector< uint8_t > | generate (int32_t count) const override |
Generate a sequence of 'count' elements as a byte sequence. | |
Public Member Functions inherited from souschef::DataChef | |
virtual | ~DataChef ()=default |
Definition at line 113 of file Constant.h.
|
inline |
Definition at line 116 of file Constant.h.
|
inlineoverridevirtual |
Generate a sequence of 'count' elements as a byte sequence.
Let D be the return value of generate(N). Then, D.size() == N * sizeof(T) where T is the element type.
Implements souschef::DataChef.
Definition at line 122 of file Constant.h.