diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2018-09-17 14:14:39 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-10 16:16:56 +0100 |
commit | 58f3919fb34a1aae42857c53360f1d569f5d31f9 (patch) | |
tree | c9b44875b8371c487f6eeb2f9a8f50006074d843 /src/armnnTfLiteParser/TfLiteParser.hpp | |
parent | 0af446014be5cc7a69bbd83545c0c25c0a2e3c20 (diff) | |
download | armnn-58f3919fb34a1aae42857c53360f1d569f5d31f9.tar.gz |
IVGCVSW-1651 Add Support for Relu on TF Lite parser
* Added Relu and Relu6 Support for the TfLite Parser.
Change-Id: I3cc5e4922910e556f25b633eae6d2d361cea61b5
Diffstat (limited to 'src/armnnTfLiteParser/TfLiteParser.hpp')
-rw-r--r-- | src/armnnTfLiteParser/TfLiteParser.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/armnnTfLiteParser/TfLiteParser.hpp b/src/armnnTfLiteParser/TfLiteParser.hpp index 964be857ab..b9f81e4118 100644 --- a/src/armnnTfLiteParser/TfLiteParser.hpp +++ b/src/armnnTfLiteParser/TfLiteParser.hpp @@ -93,6 +93,8 @@ private: void ParseDepthwiseConv2D(size_t subgraphIndex, size_t operatorIndex); void ParseSoftmax(size_t subgraphIndex, size_t operatorIndex); void ParseSqueeze(size_t subgraphIndex, size_t operatorIndex); + void ParseRelu(size_t subgraphIndex, size_t operatorIndex); + void ParseRelu6(size_t subgraphIndex, size_t operatorIndex); void RegisterProducerOfTensor(size_t subgraphIndex, size_t tensorIndex, armnn::IOutputSlot* slot); void RegisterConsumerOfTensor(size_t subgraphIndex, size_t tensorIndex, armnn::IInputSlot* slot); @@ -111,9 +113,9 @@ private: void ResetParser(); /// Attach an activation layer to the one passed as a parameter - armnn::IConnectableLayer* AddActivationLayer(armnn::IConnectableLayer* layer, - unsigned int outputSlot, - tflite::ActivationFunctionType activationType); + armnn::IConnectableLayer* AddFusedActivationLayer(armnn::IConnectableLayer* layer, + unsigned int outputSlot, + tflite::ActivationFunctionType activationType); // SupportedDataStorage's purpose is to hold data till we pass over to the network. // We don't care about the content, and we want a single datatype to simplify the code. |