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

#include <Constant.h>

Collaboration diagram for souschef::ConstantInt4DataChefFactory:

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 104 of file Constant.h.

Member Function Documentation

◆ create()

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

Implements souschef::DataChefFactory.

Definition at line 106 of file Constant.h.

107 {
108 auto const value = to_number<int8_t>(args.value(0));
109 return std::unique_ptr<DataChef>{new ConstantInt4DataChef{value}};
110 }
args
Definition infer.py:21

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