| 81 | } |
| 82 | |
| 83 | int 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 | |
| 97 | const DNN::QuantInfo *GetQuantInfo(const DNN::Model &model, css &name) { |
| 98 | if (model.quant_infos() == nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected