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

#include <Explicit.h>

Collaboration diagram for souschef::ExplicitFloat16DataChefFactory:

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 118 of file Explicit.h.

Member Function Documentation

◆ create()

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

Implements souschef::DataChefFactory.

Definition at line 120 of file Explicit.h.

121 {
122 std::unique_ptr<ExplicitFloat16DataChef> res{new ExplicitFloat16DataChef};
123
124 for (uint32_t n = 0; n < args.count(); ++n)
125 {
126 auto const value = to_number<float>(args.value(n));
127 res->insert(value);
128 }
129
130 return std::move(res);
131 }
args
Definition infer.py:21

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