aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfLiteParser/TfLiteParser.cpp
AgeCommit message (Collapse)Author
2020-03-19Creating gh-pages documentation for ArmNNJim Flynn
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2020-02-20IVGCVSW-4472 Yolo v3 ExecuteNetwork failingKeith Davis
* Add Debug workload for QAsymmS8/U8 * Change Dequantize tests to test AsymmS8 instead of SymmS8 * Fix incorrect supportedness within RefLayerSupport Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: Ie51f1e33c564d46c86bf0150b1addda3fc093d13
2020-02-17IVGCVSW-4436 Add ExecuteNetwork test for mobilenet_v2_int8Keith Davis
* Add QAsymmS8 to QueueDescriptor supportedTypes * Add QSymmS8/QAsymmS8 to RefLayerSupport supportedTypes * Some additional comments and refactoring Change-Id: I8567314452e6e8f6f69cb6e458ee147d3fc92fab Signed-off-by: Keith Davis <keith.davis@arm.com>
2020-02-10IVGCVSW-4409 Fix TfLiteParser to handle all datatypes correctlyRyan OShea
* Added check for QAsymmS8 datatype for Per-Tensor quantization Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com> Change-Id: I902aa3863dd5cefdce90e68be8a5750dd6ff9e54
2020-02-07MLCE-139: add capability to align corners for bilinear resizeSang-Hoon Park
* Add parsing of the related parameter to TfLiteParser * Update ResizeDescriptor to store the additional parameter * Update NEON/CL workload to pass the additional parameter. * Update Reference workload to pass and handle the additional parameter. !ComputeLibrary:2538 !ComputeLibrary:2569 !armnn:2612 Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com> Change-Id: Id149e1c24c2abed7e9dd81939acf54dfabfcdfd2
2020-01-28IVGCVSW-4335 Add support for per-channel QSymm8 to TfLite parserKeith Davis
Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: I52f777f56138a27655a821aff376ecd0d3d23511
2020-01-20Remove use of ArmNN.hpp where it is unnecessary.Matthew Bentham
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com> Change-Id: I6c90eab1c6bad76d5c7b3bf094998fa4b454bcd1
2020-01-15IVGCVSW-4193 Add QUANTIZE to the TfLite parserSadik Armagan
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I53431c70edb64c9283ae556407cc07e54469d8cc
2020-01-13Rename quantized data types to remove ambiguity for signed/unsigned payloadsDerek Lamberti
!android-nn-driver:2572 Change-Id: I8fe52ceb09987b3d05c539409510f535165455cc Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
2020-01-03IVGCVSW-4246 Clean build of parsers with -WextraDerek Lamberti
Change-Id: Ib00f185b431ab74fd9425d8f478bd2ddb182f74b Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
2019-12-10IVGCVSW-4191 Add DEQUANTIZE to the TfLite ParserFinn Williams
!armnn:2421 Change-Id: Icdb02b7248ed408c3c8ad2e3e38df5b7cda1c545 Signed-off-by: Finn Williams <Finn.Williams@arm.com>
2019-12-05Replace boost logging with simple loggerDerek Lamberti
!referencetests:214319 * Reduces arm nn binary size ~15% * Also fixed test logging black hole issues Change-Id: Iba27db304d9a8088fa46aeb0b52225d93bb56bc8 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
2019-12-05IVGCVSW-4179 Add RESIZE_NEAREST_NEIGHBOUR to the TfLite parserSadik Armagan
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I6359a8a405c86aef04cde75404393dd4ee917fa5
2019-11-29IVGCVSW-4209 Create a public API for the ArmNN UtilsMatteo Martincigh
* Moved the relevant armnnUtils headers to the new location: include/armnnUtils * Update the header usage throughout the source code !android-nn-driver:2387 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I2ba15cebcacafad2b5a1a7b9c3312ffc585e09d6
2019-11-19IVGCVSW-1530 Add TfLite slice parser and fix transpose perm vector creationjosh minor
* TfLite slice parser and relevant tests added * TfLite transpose parser logic added to translate Tf/np permutation vector definitions to Armnn definitions * TfLite transpose parser no permute data test modified to include data for default permutation vector when none specified Signed-off-by: josh minor <josh.minor@arm.com> Change-Id: Iebd30971bd180593dc6b8f0d5be1d1bc61a3a5bf
2019-10-24IVGCVSW-4007 Add StandInLayer for unsupported operations in TfLiteParserAron Virginas-Tar
* Fixed bug in custom operator support that caused all custom operators to be parsed as a DetectionPostProcessLayer * Added support for handling unsupported operators (built-in or custom) by replacing them with a StandInLayer in the generated network * Added options to TfLiteParser to control whether we want to use StandInLayers when we encounter unsupported operators, or we prefer to throw a ParserException as until now Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I125a63016c7c510b1fdde6033842db4f276718c4
2019-10-22IVGCVSW-3669 Fix TfLiteParser to set Splitter layer outputs' quantization paramsFrancis Murtagh
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I6c69f1f2f0f9c49ddada57b41d5802919ea14b25
2019-10-22Fix Unpack in TfLiteParser missing quantization parametersNarumol Prangnawarat
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I026e4880013fa4ed83b6c4643dda7e4d100014a5
2019-09-27IVGCVSW-3909 Fix Transpose perm vector not parsed by Tflite parserKevin May
* Add permute vector to descriptor if present * Refactor test to check with and without permute vector Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Ic8d882bb0f982fd00bb2854c18ea316b1b2cde2b
2019-09-10IVGCVSW-3712 Add Transpose into TfLite ParserKeith Davis
Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: I94e975ede3876c812f0f26b040e8c50a5597f86a
2019-08-21IVGCVSW-3650 Fix Transpose Convolution inputs in TfLite parserMatthew Jackson
* Reordered and edited inputs in ParseTransposeConv method * Updated test cases to reflect changes Signed-off-by: Matthew Jackson <matthew.jackson@arm.com> Change-Id: Icd090cf6ab340eed4f098ef8641daf7c6e0d0949
2019-08-20IVGCVSW-3650 Add TfLite Parser support for Transpose Convolution layerMatthew Jackson
* Added ParseTransposeConv to TfLite Parser * New TransposeConv test file * Updated documentation for supported Transpose Convolution Change-Id: Id7356d8525556805c164af693ae2b16f6a8492fa Signed-off-by: Matthew Jackson <matthew.jackson@arm.com>
2019-07-22IVGCVSW-3368 Add reference support for depthwise multiplier > 3Matthew Jackson
* Remove multiplier check in TfLite parser * Add reference unit test for depthwise multipler of 64, as in DeepSpeaker Signed-off-by: Matthew Jackson <matthew.jackson@arm.com> Change-Id: I787339ab4c4d269333985353d191202d070906ba
2019-07-22IVGCVSW-3383 - Add TfLite Parser support for L2 Normalization layerMatthew Jackson
* Added ParseL2Normalization in TfLiteParser * Added new unit tests L2Normalization.cpp * Added documentation for supported L2 Normalization to TensorflorLiteSupport.md Signed-off-by: Matthew Jackson <matthew.jackson@arm.com> Change-Id: I83ea75d1791ac8a00390aed3e5d0a7b337fcd46d
2019-07-17IVGCVSW-3423 Add TfLite parser support for Stack (Pack) layerMatthew Jackson
* Added ParsePack method * New unit test Pack.cpp * Updated TensorFlowLiteSupport.md with new supported operator Signed-off-by: Matthew Jackson <matthew.jackson@arm.com> Change-Id: I2310b33ee26959b036bb4452a25c90cc1d4cbf20
2019-07-02IVGCVSW-3382 Deprecate ResizeBilinear and use Resize with Bilinear methodAron Virginas-Tar
!android-nn-driver:1451 Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Ieedbce1f6e95891137a250fdd07e2f7e4e1f4828
2019-05-30MLCE-119: Allow deph multipliers 2 and 3Pablo Tello
We had check in the parser to catch calls where deph_mult > 1, this came from the time when ACL supported only multiplier == 1. Change-Id: Ic21a2cd6a5bb328d43fc9c667e847429a57760b2 Signed-off-by: Pablo Tello <pablo.tello@arm.com>
2019-05-14Use the new deprecation APIMatteo Martincigh
* Used the new ARMNN_DEPRECATED_MSG macro instead of @deprecated * Refactored the code to no longer use the deprecated methods where applicable !android-nn-driver:1126 Change-Id: Ib0578d3d6fc5a763f5fb922f67ba91fafc7796f6 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-05-14IVGCVSW-3076 Add ConcatLayer methods to public APIJim Flynn
!android-nn-driver:1120 Change-Id: I5192fa3deb4ea9766d38ad0bf4dfbfa0b4924c41 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2019-05-13MLCE-101: Adding dilation support in conv and dconvPablo Tello
Added support for dilation in DepthwiseConvolution2d in the Neon and CL backends. Change-Id: Ie1522b498c07f80d6efcf9dc79e926c8cfa06ca5 Signed-off-by: Pablo Tello <pablo.tello@arm.com>
2019-04-30IVGCVSW-2405 Rename SubGraph to SubgraphViewDerek Lamberti
Change-Id: Ie50aeccf053c20c3a01a75042bbc3acd824375af Signed-off-by: Derek Lamberti <derek.lamberti@arm.com> Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-04-29IVGCVSW-2996 Add Reshape layer to ParseFullyConnected in TfLite parserNarumol Prangnawarat
when input is > 2D to flatten the input to 2D [batch_size, input_size] Change-Id: Id9d9ff996225c7d0938204ae0ceb330a11e264f5 Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
2019-04-25IVGCVSW-2994 Add Reshape layer to ParseUnpack in TfLite parserNarumol Prangnawarat
to remove the unpacked dimension of each output from Splitter and correct ReshapeFixtureWithReshapeDimsFlatten test output shape Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I517d315475612ac8b773930f9b58cac316fa8553
2019-04-18IVGCVSW-2987 Modify ParseSplit in TfLite parserNarumol Prangnawarat
* Allow input data with dimension not greater than 4D * Correct input order * Get split dimension from buffer data * Unit tests Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I285851b19e6fa7c715e5fe4853df167e7c856647
2019-04-17IVGCVSW-2849 Add TfLite Parser support for Rank-0 operands and unit testsNarumol Prangnawarat
Change-Id: I6dab12aed395a30466d66421c6e5a12659fedac8 Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
2019-04-15IVGCVSW-2848 - Add TfLite Parser support for Unpack layerNina Drozd
* Added ParseUnpack in TfLiteParser * New Unpack test file with test reproducing unpack in DeepSpeechV1 model * Added documentation for supported Unpack to TensorflorLiteSupport.md Signed-off-by: Nina Drozd <nina.drozd@arm.com> Change-Id: Ie920d46254ff4b4ab544407ace4c1d489af83157
2019-04-10IVGCVSW-2947 Remove boost dependency from include/TypesUtils.hppAron Virginas-Tar
!android-nn-driver:968 Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I03ccb4842b060a9893567542bfcadc180bbc7311
2019-04-09IVGCVSW-2845: Add TfLite Parser support for TanH activation layerNina Drozd
* Added ParseTanH in TfLiteParser * Added testcase for parsing TanH activation in Activations.cpp * Added new supported TanH operator in TensorflowLiteSupport.md Signed-off-by: Nina Drozd <nina.drozd@arm.com> Change-Id: Ie60f38994d76b077f86828c21c57381bdeeaeb5a
2019-04-08IVGCVSW-2844: Add TfLite Parser support for Split layerNina Drozd
* Added ParseSplit method * New Unit test Split.cpp * Updated TensorflowLiteSupport.md with new supported operator Change-Id: Iec80ba9ad7b48db8e86589ebae77bd7d8ed38fb2 Signed-off-by: Nina Drozd <nina.drozd@arm.com>
2019-03-29MLCE-101 Deeplab v3+ (Add Tf Lite Parser Dilation Check)Kevin May
* Add Parse Exception for convolutions without default dilation Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I1b8f75c2d871d81161eb5378ced277438e809ba2
2019-02-26IVGCVSW-2560 Verify Inference test for TensorFlow Lite MobileNet SSDNarumol Prangnawarat
* Assign output shape of MobileNet SSD to ArmNN network * Add m_OverridenOutputShapes to TfLiteParser to set shape in GetNetworkOutputBindingInfo * Use input quantization instead of output quantization params * Correct data and datatype in Inference test Change-Id: I01ac2e07ed08e8928ba0df33a4847399e1dd8394 Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com>
2019-02-26IVGCVSW-2429 Add Detection PostProcess Parser to TensorFlow Lite Parserkeidav01
* Added additional custom option use_regular_nms to JSON string * Renamed use_regular_non_max_suppression to use_regular_nms in parser Change-Id: I5431eabade6337f6f8c3372670862e32e9cda63c Signed-off-by: keidav01 <keith.davis@arm.com>
2019-02-25Add strided-slice parser to tf-liteBruno Goncalves
Change-Id: I1821d7e8123c76823562dd2e8822c5293fcb18c3 Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-25Add minimum parser to tf-liteBruno Goncalves
Change-Id: I617c2715e0fb8d01b96fa9d3d5d9a16a33477b66 Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-25Add maximum parser to tf-liteBruno Goncalves
Change-Id: Idaf6dd3f4d96dad01e1dc1a0d3fd6c146780626d Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-22Add space-to-batch-nd parser to tf-liteBruno Goncalves
Change-Id: I3bf86d44f811380559ec35eed0bc43b3bd97da80 Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-22Add batch-to-space-nd parser to tf-liteBruno Goncalves
Change-Id: I1e210f88f19f38ab719008e119c8fed153a3dd95 Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-22Add resize-bilinear parser to tf-liteBruno Goncalves
Change-Id: Id35db981b38348e5a941cfbb4cbdfe8cd617a254 Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-22Add sub parser to tf-liteBruno Goncalves
Change-Id: I0e63d81d95528e6c278dc5fa8b87ccc1f8798130 Signed-off-by: Bruno Goncalves <bruno.slackware@gmail.com>
2019-02-21IVGCVSW-2429 Add Detection PostProcess Parser to TensorFlow Lite Parserkeidav01
* Added parser function in TFLiteParser * Removed custom options gating * Added unit test * Removed template usage in VerifyTensorInfo for DeserializeParser Change-Id: If198654ed70060855a05f8aaed010293405bd103 Signed-off-by: keidav01 <keith.davis@arm.com>