ONE - On-device Neural Engine
Loading...
Searching...
No Matches
souschef::ExplicitDataChefFactory< T > Struct Template Reference

#include <Explicit.h>

Collaboration diagram for souschef::ExplicitDataChefFactory< T >:

Public Member Functions

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

Detailed Description

template<typename T>
struct souschef::ExplicitDataChefFactory< T >

Definition at line 83 of file Explicit.h.

Member Function Documentation

◆ create()

template<typename T >
std::unique_ptr< DataChef > souschef::ExplicitDataChefFactory< T >::create ( const Arguments args) const
inlinevirtual

Implements souschef::DataChefFactory.

Definition at line 85 of file Explicit.h.

86 {
87 std::unique_ptr<ExplicitDataChef<T>> res{new ExplicitDataChef<T>};
88
89 for (uint32_t n = 0; n < args.count(); ++n)
90 {
91 auto const value = to_number<T>(args.value(n));
92 res->insert(value);
93 }
94
95 return std::move(res);
96 }
args
Definition infer.py:21

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