aboutsummaryrefslogtreecommitdiff
path: root/src/armnnDeserializer
AgeCommit message (Collapse)Author
2019-10-31Fix bug in deserializitaion of ResizeLayerAron Virginas-Tar
* Fixed return value for armnnSerializer::ResizeMethod_Bilinear in ToResizeMethod() Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: If5ea0fbfec6986d11c409f7072390b8c65805aa9
2019-10-25IVGCVSW-4018 Move QuantizeHelper.hpp to armnnUtilsAron Virginas-Tar
* Moved QuntizeHelper.hpp to armnnUtils * Reordered parameters for QuantizedVector and added default values for qScale and qOffset to make life easier when using the function for non-quantized types such as Float16 Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I28c263dfa425f1316feccb4116839a84f5d568e5
2019-10-23IVGCVSW-4010 Add serialization support for StandInLayerAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I2017c15b485b82437c6ffdac4d3112bcc2cbe9e9
2019-10-21IVGCVSW-3996 Add deserialization test for ComparisonLayerAron Virginas-Tar
* Added DeserializeComparison.cpp that contains float32 and quantized deserialization test cases for all comparison operations * Removed DeserializeEqual.cpp and DeserializeGreater.cpp, as they have become redundant Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I9577168721e1bc6bcc5bb2b35edf82390a816597
2019-10-21IVGCVSW-3992 Add serialization support for ComparisonLayerAron Virginas-Tar
* Added serialization support and serialization-deserialization test for Comparison * Added backward compatibility tests for Equal and Greater, to make sure they are serialized and deserialized as Comparison * Refactored serialization tests and reduced code duplication by taking advantage of operator==() recently added for Descriptors Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Id0fd94ef4b17e4e51c8005e585ea3c47f9c1bd8d
2019-10-21IVGCVSW-3993 Add frontend and reference workload for ComparisonLayerAron Virginas-Tar
* Added frontend for ComparisonLayer * Added RefComparisonWorkload * Deprecated and removed Equal and Greater layers and workloads * Updated tests to ensure backward compatibility Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Id50c880be1b567c531efff919c0c366d0a71cbe9
2019-10-15IVGCVSW-3977 Add deserialization test for LOG_SOFTMAXAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I0139e521188381c789fdf2ceceeeaaa48427c6ab
2019-10-14IVGCVSW-3974 Add serialization support for LOG_SOFTMAXSadik Armagan
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I0777abc672dd7d5c9fadaed27b0e776ac591d2c7
2019-10-10IVGCVSW-3943 Add deserialization test for INSTANCE_NORMALIZATIONAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I9f3ab44d0d6644e4bf2958c983d2b5410ba13aec
2019-10-03IVGCVSW-3934 Add serialization support for INSTANCE_NORMALIZATIONAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: If9b4d30cbd625206ec1c7d37dd8b449983442147
2019-10-01Update field name of serialized format not to make problem with jsTee Jung
Signed-off-by: Jung Tae-young <naey05@gmail.com> Change-Id: I69ee32b5e201198610e7ba6ec22b0c0025a7e57c
2019-09-25Add Input and Output to list of serializable layersAron Virginas-Tar
* Added Input and Output to armnnSerializer/SerializerSupport.md and armnnDeserializer/DeserializerSupport.md Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I875f822019609763d110a86271d37dd31eb964b1
2019-09-24IVGCVSW-3900 Add deserialization test for DepthToSpaceAron Virginas-Tar
* Fixed bug in DepthToSpaceLayer::InferOutputShapes by removing leftover throw UnimplementedException * Added Deserializer/DepthToSpaceFloat32 deserialization test Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I8fc31d0270b4de1dac45ee12c2b798df81f312a7
2019-09-20IVGCVSW-3886 Add serialization support for DepthToSpaceAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Id80c1bcbf50715f07a92dad08d554518a283cc28
2019-09-20IVGCVSW-3880 Add deserialization test for SLICEAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I513a6c02d77c1fd99c7d6571ee8333eae3e1e290
2019-09-19IVGCVSW-3880 Add serialization support for SLICEAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I5eaf61cfd2c875805d2f37cd967d75ad1d20ad6d
2019-09-19Fix illegal use of anonymous stack veriable in DeserializerMatthew Bentham
Temporary lifetime extension certainly applies where the local variable is a const reference, but in this case (non-const refernece) address sanitizer was reporting a problem. In any case in other places that we use ToTensorInfo we store the value, so I think the original code here was a mistake. Change-Id: I55e185c46b1bf367a96d7d8c411ef86f07e8bd8d Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
2019-09-11IVGCVSW-3724 Adding serialization support for ArgMinMaxNarumol Prangnawarat
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I21210c843c3b8800ccc68d4f3095259d0a233bd1
2019-09-10IVGCVSW-3739 Add serialization support for AbsFinnWilliamsArm
Signed-off-by: FinnWilliamsArm <Finn.Williams@arm.com> Change-Id: I42c348515f3f93efc2e0570bbebdc77306f12468
2019-07-29IVGCVSW-3471 Add Serialization support for Quantized_LSTMJan Eilers
* Adds serialization/deserialization support * Adds related Unit test Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: Iaf271aa7d848bc3a69dbbf182389f2241c0ced5f
2019-07-23IVGCVSW-3526 Add layer norm support for lstm serializationJan Eilers
* Adds layer norm support for serialization/deserialization * Adds related unit tests Change-Id: If80b668accc8b0754a93d18ab3a243284cb383d1 Signed-off-by: Jan Eilers <jan.eilers@arm.com>
2019-07-16IVGCVSW-3420 Add Serialization support for the new Stack layerMatthew Jackson
* Adds serialization/deserialization support * Adds related unit test Signed-off-by: Matthew Jackson <matthew.jackson@arm.com> Change-Id: I69deb5397b8a06c679715e24971e9bb1c282140d
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-07-01IVGCVSW-3364 Add serialization support for Resize layerFinnWilliamsArm
Signed-off-by: FinnWilliamsArm <Finn.Williams@arm.com> Change-Id: I3b1af816cefc1760f63324f365de93f899c9c9ee
2019-06-24IVGCVSW-3235 Add scalar to use as padding value in Reference PadDavid Monahan
Signed-off-by: David Monahan <david.monahan@arm.com> Change-Id: If050f318fcb7626bbfae1b8737a1d232a4a5a915
2019-06-21IVGCVSW-3330 Parse dilation parameters for DepthwiseConvolution2d in ↵Aron Virginas-Tar
Deserializer * Added code for reading parameters dilationX and dilationY to Deserializer::ParseDepthwiseConvolution() * Updated serialization unit tests to check for dilation params for both Convolution2d and DepthwiseConvolution2d Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Id03629866009e799cf7daf8b7bdafc73d158d9bb
2019-06-21IVGCVSW-3321 Add serialization support for TransposeConvolution2dLayerAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: If0c8f3662d5e03696f97040abed784c0fbcdbc6f
2019-06-21IVGCVSW-3291 Add L2Normalization epsilon value to serializationFerran Balaguer
Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com> Change-Id: Icfff3fb596a03c126a42b1d0c254a68e498df734
2019-06-19IVGCVSW-3269 Add Serialization support for the new Prelu Activation layerEllen Norris-Thompson
* Adds serialization/deserialization support * Adds related unit test Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> Change-Id: I600322b03e51f443cbcd9262bb27e36e5fd95ae5
2019-06-12IVGCVSW-3260 Add serialization support for SpaceToDepthAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Ie0d9561437ff5da8fa4db81fee1e70bd18c47034
2019-06-04Do not rebuild the serializer/deserializer code if not necessaryMatteo Martincigh
* Make ArmnnSchema_generated.h depend on ArmnnSchema.fbs so that the serializer code is not rebuilt every time * Removed unnecessary header usage from the serializer/deserializer code Change-Id: I35368c9611fcc2b777a4dbffa45d9872772e9dd4 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
2019-05-28IVGCVSW-3119 Rename MergerLayer to ConcatLayerJim Flynn
!android-nn-driver:1210 Change-Id: I940b3b9e421c92bfd55ae996f7bc54ac077f2604 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2019-05-16IVGCVSW-2964 Fix issue with Deserializer creating ciruclar graphNattapat Chaimanowong
*Issue was caused by using layer index with respect to flatbuffer layers vector in place of the index property on each layer base (and vice versa). These are not necessarily the same. Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com> Change-Id: Ide3e33c77f394cd1b6850c7c61e4bee2dede76d3
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 Add dilation parameter to serializerMatthew Bentham
Change-Id: I8142e179d38c7a2a9163cf3d30bd1f411e8e109c Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
2019-05-02IVGCVSW-3039 Unify BindingPointInfo declarationsJim Flynn
Change-Id: I3deb2b9a37e8a8f8f2ed93c64ed0656ae911e24c Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2019-04-11IVGCVSW-2873 Update documentation for Serializer/DeserializerSadik Armagan
* Updated Serializer/Deserializer support documentation for Quantize Operation. Change-Id: I8cc670a58756c9f2d7294131c4715bee5ae7a647 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
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-05IVGCVSW-2914 Add Switch Layer and no-op factory methodSadik Armagan
Change-Id: I6a6ece708a49e8a97c83a3e7fec11c88af1e1cfa Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com>
2019-04-05IVGCVSW-2915 Add Merge Layer and no-op factory methodNattapat Chaimanowong
Change-Id: I54549671e0d3b207904cf9796a843eb2b0a631f7 Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
2019-03-28IVGCVSW-2874 Add DequantizeLayer and no-op factory methodNattapat Chaimanowong
*Add Dequantize layer to the frontend *Add Serializer and Deserializer for Dequantize Change-Id: Ide2647b9e0348d599deb97e61ca4bf66e2f17fc0 Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
2019-03-27IVGCVSW-2870 Serialize quantize layerDerek Lamberti
Change-Id: I2cff85a3cb4d47aa09227a6810812a142f2aedd3 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
2019-03-21IVGCVSW-2694: serialize/deserialize LSTMJim Flynn
* added serialize/deserialize methods for LSTM and tests Change-Id: Ic59557f03001c496008c4bef92c2e0406e1fbc6c Signed-off-by: Nina Drozd <nina.drozd@arm.com> Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2019-03-19IVGCVSW-2839 Add QuantisedSymm16 support to the ArmNN frontendNattapat Chaimanowong
Change-Id: I76f4e7db55b0efbb1a5f7d1a32bf451e66add0c7 Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
2019-03-18IVGCVSW-2686 Add Serializer and Deserializer for DetectionPostProcessNattapat Chaimanowong
Change-Id: Ife48db5fdb005ebca0a6f21862b0ce971ccf58b7 Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
2019-03-12IVGCVSW-2709 Serialize / de-serialize the Splitter layerJim Flynn
* fixed typo in Ref Merger Workload comment * fixed typo in ViewsDescriptor comment * made the origins descriptor accessable in the ViewsDescriptor (needed for serialization) * based the unit test on the use of the splitter in the CaffeParser Change-Id: I3e716839adb4eee5a695633377b49e7e18ec2aa9 Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com> Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2019-03-08IVGCVSW-2693 Serialize/de-serialize L2NormalizationNarumol Prangnawarat
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I6a53ac576260383f32fb0d878b42d1251ffde94a
2019-03-07IVGCVSW-2697 Add Serialize/Deserialize for the Merger LayerJim Flynn
* Force generation of schema header in every build * Also fixed typo in OriginsDescriptor comment (Descriptors.hpp) * Added Serialize/Deserialize check on Addition Layer * Added Serialize/Deserialize check on Floor Layer * Added Serialize/Deserialize check on Minimum Layer * Added Serialize/Deserialize check on Maximum Layer * Added Serialize/Deserialize check on Multiplication Layer * Added Serialize/Deserialize check on Division Layer Change-Id: I1358ea4db7ca506d8bcec2ee64e1fbad6005e723 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2019-03-07IVGCVSW-2783 Fix Deserializer connections for layer with multiple outputsNattapat Chaimanowong
Change-Id: Icb278dfd8900334665432963fa6f6341a461ef3b Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>