ONE - On-device Neural Engine
Loading...
Searching...
No Matches
souschef::GaussianInt8DataChef Class Referencefinal

#include <Gaussian.h>

Collaboration diagram for souschef::GaussianInt8DataChef:

Public Member Functions

 GaussianInt8DataChef (float mean, float stddev)
 
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
 

Detailed Description

Definition at line 108 of file Gaussian.h.

Constructor & Destructor Documentation

◆ GaussianInt8DataChef()

souschef::GaussianInt8DataChef::GaussianInt8DataChef ( float  mean,
float  stddev 
)
inline

Definition at line 111 of file Gaussian.h.

111 : _mean{mean}, _stddev{stddev}
112 {
113 // DO NOTHING
114 }

Member Function Documentation

◆ generate()

std::vector< uint8_t > souschef::GaussianInt8DataChef::generate ( int32_t  count) const
overridevirtual

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 118 of file Gaussian.cpp.

119{
120 return generate_gaussian<int8_t>(count, _mean, _stddev);
121}

The documentation for this class was generated from the following files: