| 71 | |
| 72 | template<typename LayerType> |
| 73 | LayerType* FuseAdditionLayer(OptimizationViews& optimizationViews, |
| 74 | LayerType* baseLayer, |
| 75 | ActivationLayer* activationLayer, |
| 76 | ActivationDescriptor& activationDesc, |
| 77 | std::string name) |
| 78 | { |
| 79 | ARMNN_NO_DEPRECATE_WARN_BEGIN |
| 80 | IConnectableLayer* replacement = optimizationViews.GetINetwork()->AddAdditionLayer(name.c_str()); |
| 81 | ARMNN_NO_DEPRECATE_WARN_END |
| 82 | LayerType* replacementLayer = PolymorphicDowncast<LayerType*>(replacement); |
| 83 | |
| 84 | FuseLayer(optimizationViews, |
| 85 | baseLayer, |
| 86 | replacementLayer, |
| 87 | activationLayer, |
| 88 | activationDesc); |
| 89 | |
| 90 | return replacementLayer; |
| 91 | } |
| 92 | |
| 93 | template<typename LayerType> |
| 94 | LayerType* FuseSubtractionLayer(OptimizationViews& optimizationViews, |
nothing calls this directly
no test coverage detected