MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / convert_fuse_code_to_nnapi

Function convert_fuse_code_to_nnapi

dnnlibrary/DaqReader.cpp:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83int convert_fuse_code_to_nnapi(const DNN::FuseCode fuse_code) {
84 switch (fuse_code) {
85 case DNN::FuseCode::None:
86 return ANEURALNETWORKS_FUSED_NONE;
87 case DNN::FuseCode::Relu:
88 return ANEURALNETWORKS_FUSED_RELU;
89 case DNN::FuseCode::Relu1:
90 return ANEURALNETWORKS_FUSED_RELU1;
91 case DNN::FuseCode::Relu6:
92 return ANEURALNETWORKS_FUSED_RELU6;
93 }
94 throw std::invalid_argument("Invalid fuse_code");
95}
96
97const DNN::QuantInfo *GetQuantInfo(const DNN::Model &model, css &name) {
98 if (model.quant_infos() == nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected