ONE - On-device Neural Engine
Loading...
Searching...
No Matches
souschef::ExplicitInt4DataChefFactory Struct Reference

#include <Explicit.h>

Collaboration diagram for souschef::ExplicitInt4DataChefFactory:

Public Member Functions

std::unique_ptr< DataChefcreate (const Arguments &args) const
 
- Public Member Functions inherited from souschef::DataChefFactory
virtual ~DataChefFactory ()=default
 

Detailed Description

Definition at line 152 of file Explicit.h.

Member Function Documentation

◆ create()

std::unique_ptr< DataChef > souschef::ExplicitInt4DataChefFactory::create ( const Arguments args) const
inlinevirtual

Implements souschef::DataChefFactory.

Definition at line 154 of file Explicit.h.

155 {
156 std::unique_ptr<ExplicitInt4DataChef> res{new ExplicitInt4DataChef};
157
158 for (uint32_t n = 0; n < args.count(); ++n)
159 {
160 auto const data = to_number<int8_t>(args.value(n));
161 res->insert(data);
162 }
163
164 return std::move(res);
165 }
args
Definition infer.py:21

The documentation for this struct was generated from the following file: