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

#include <Constant.h>

Collaboration diagram for souschef::ConstantDataChefFactory< 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::ConstantDataChefFactory< T >

Definition at line 58 of file Constant.h.

Member Function Documentation

◆ create()

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

Implements souschef::DataChefFactory.

Definition at line 60 of file Constant.h.

61 {
62 auto const value = to_number<T>(args.value(0));
63 return std::unique_ptr<DataChef>{new ConstantDataChef<T>{value}};
64 }
args
Definition infer.py:21

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