[mir_caffe2] Change type of strides argument (#7174)
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_onnx] Change type of strides argument (#7173)
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Sep 2019 12:50:28 +0000 (21:50 +0900)]
Fix neurun build fail (#7171)
Fix neurun build fail by ITensorManager change
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 11:56:25 +0000 (20:56 +0900)]
Enable ResizeBilinear op for ACL neon (#7151)
This commit enables to support ResizeBilinear op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 11:55:51 +0000 (20:55 +0900)]
[neurun] Nit : Put override specifier (#7154)
Nit : Put override specifier in NopFunction.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 11:54:29 +0000 (20:54 +0900)]
[neurun] Implement classes inherit to ITensorManager (#7083)
* [neurun] Implement classes inherit to ITensorManager
Implement classes inherit to ITensorManager such as cpu/TensorManager
and AclTensorManager
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Add findTensorAsParent()
* Merge two buildXXXTensor into one with as_const param
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Sep 2019 11:05:11 +0000 (20:05 +0900)]
Remove unused env variable utility (#7140)
Unify environment variable utility
Remove unused environment variable utility functions
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 09:51:50 +0000 (18:51 +0900)]
[loco] Introducing BiasDecode (#7158)
This introduce loco::BiasDecode, which translate Bias domain to Tensor domain.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 09:24:22 +0000 (18:24 +0900)]
Enable LogicalNot op for ACL neon (#7159)
This commit enables to support LogicalNot op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Sep 2019 08:18:45 +0000 (17:18 +0900)]
Fix memory leak in srcn (#7162)
Delete allocated array before fast return
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 08:02:42 +0000 (17:02 +0900)]
Enable Unpack op for ACL neon (#7133)
This commit enables to support Unpack op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 07:26:55 +0000 (16:26 +0900)]
[exo-tflite] renaming TFLConverter to CanonicalNodeConverter (#7152)
TFLConverter was renamed to CanonicalNodeConverter, meaning "convert caninical node to TFL node"
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
Vladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 4 Sep 2019 06:16:46 +0000 (09:16 +0300)]
[custom op] Update custom kernel registry to use C api version (#6288)
* [custom op] Update custom kernel registry to use C api version
Split custom kernel and kernel registry into separate files
Now custom kernel uses api types
Link neurun core library with API headers
* update with latest changes to #6219
* Update kernel registry with changes to api. Link neurun core with nnfw-header
* add missed license
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 05:57:29 +0000 (14:57 +0900)]
Enable Transpose op for ACL neon (#7155)
This commit enables to support Transpose op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 05:57:17 +0000 (14:57 +0900)]
Enable Logistic op for ACL neon (#7156)
This commit enables to support Logistic op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 04:26:30 +0000 (13:26 +0900)]
[moco-tf] Use logo for Importer (#7119)
This will revise Importer to use logo Phase and ProgressReporter
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 03:59:55 +0000 (12:59 +0900)]
[exo-tflite] Export TFLAdd (#7150)
This will add export for TFLAdd node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Vladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 4 Sep 2019 03:39:43 +0000 (06:39 +0300)]
[custom op] Update kernel registry binding (#7141)
* [custom op] Update kernel registry binding
Split kernel registry creation from backend context creation
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
* format fix
* fix unused parameter compile error
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 03:39:18 +0000 (12:39 +0900)]
Add permutation type member into PermuteNode (#7085)
This comit adds permutation type member into PermuteNode.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 03:31:52 +0000 (12:31 +0900)]
[exo-tflite] Add knob for ADD (#7148)
This will add knob for ADD as ConvertAdd
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 4 Sep 2019 01:54:03 +0000 (10:54 +0900)]
Add missing copyright in GraphTestcase.h (#7145)
Add missing copyright phrase for loco's GraphTestcase.h
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:51:07 +0000 (10:51 +0900)]
[moco-tf] Revise FixShape test with Conv2D (#7116)
This will revise FixShapeTransform test with Conv2D to use moco::tf::TFConv2D from loco::Conv2D IR
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 01:45:30 +0000 (10:45 +0900)]
[neurun] Add buildSubtensor() and objects() to AclMemoryManager (#7084)
Add buildSubtensor() and objects() into AclMemoryManager to be used by AclTensorManager in the future
Apply buildSubtensor() into TemplTensorBuilder
Remove unnecessary namespace
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:44:40 +0000 (10:44 +0900)]
[moco-tf] Use logo for TFOptimizer (#7121)
This will revise TFOptimizer to use logo Phase and ProgressReporter
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:44:24 +0000 (10:44 +0900)]
[moco-tf] Use logo for Optimizer (#7120)
This will revise Optimizer to use logo Phase and ProgressReporter
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:44:02 +0000 (10:44 +0900)]
[moco-tf] Use logo for Canonicalizer (#7118)
This will revise Canonicalizer to use logo Phase and ProgressReporter
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:43:39 +0000 (10:43 +0900)]
[exo-tflite] Introduce TFLAdd (#7113)
This will introduce TFLAdd IR and required summary builder
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:42:04 +0000 (10:42 +0900)]
[tflite_loader] implement div and sqrt (#7114)
It adds div and sqrt in tflite_loader.
`tf2tflite` converts `rsqrt` into `sqrt` and `div`.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 4 Sep 2019 01:18:14 +0000 (10:18 +0900)]
[exo-tflite] Revise shape inf test (#7144)
This will revise shape inference test as network has TFL and Canonical dialects
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 4 Sep 2019 00:42:19 +0000 (09:42 +0900)]
Enable RNN op for ACL neon (#7137)
This commit enables to support RNN op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
[mir] Pass aggregate arguments by const reference (#7143)
clang-tidy suggests to pass by value and use `std::move`, but it is easy to forget and does not give significant benefits.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe] Do not insert Transposes (#7110)
Remove insertion of Transpose operations, set the data format on operations instead.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe2] Do not insert Transposes (#7139)
Remove insertion of Transpose operations, set the data format on operations instead.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[soft_backend] Added Resize shape checking (#7107)
* Checked that resize work only H and W dims
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[mir_onnx] Remove unsing converters before operation with NCHW layout (#7044)
* Removed converters
* Fixed some params
* Fixed consant shape in BatchNormalization (for right work of
broadcasting in elementwise operations)
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 11:24:57 +0000 (20:24 +0900)]
Enable L2Pool2D op for ACL neon (#7134)
This commit enables to support L2Pool2D op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 3 Sep 2019 10:14:24 +0000 (19:14 +0900)]
[loco] Add bool return type for shape infer to() (#7131)
This will set boolean return type for ShapeInferenceSession to() method
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 3 Sep 2019 08:23:17 +0000 (17:23 +0900)]
[tflite_loader] implement squared_difference (#7127)
It adds squared_difference operator in tflite_loader.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 08:12:48 +0000 (17:12 +0900)]
Enable L2Normalization op for ACL neon (#7129)
This commit enables to support L2Normalization op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 08:12:14 +0000 (17:12 +0900)]
Fix misapplied enum value in KernelGenerators (#7130)
This commit fixes misapplied enum value in KernelGenerators.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 08:11:22 +0000 (17:11 +0900)]
Enable acl neon backend mul operation (#7105)
Update acl neon backend ShapeFixer's mul
Remove exception in kernel generator for mul
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 3 Sep 2019 06:52:46 +0000 (15:52 +0900)]
[tflite_loader] implement tanh (#7126)
It adds tanh operator in tflite_loader.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 05:50:11 +0000 (14:50 +0900)]
Remove hardcode for L2Normalization (#7122)
This commit removes hardcode for L2Normalization from KernelGenerator of acl_cl
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 3 Sep 2019 05:49:01 +0000 (14:49 +0900)]
[tflite_loader] implement rsqrt (#7124)
It adds rsqrt operator in tflite_loader.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 05:48:07 +0000 (14:48 +0900)]
Change to include the integrated header of ACL NEON (#7117)
This commit changes to include the integrated header of ACL NEON.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 05:46:42 +0000 (14:46 +0900)]
[neurun] Add srcn library for new neurun backend (#6993)
* Add srcn library for new neurun backend
This patch includes implementation of srcn kernel.
It only supports Convolution and TransposeConv operations.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Fix format checker errors
* Remove unused code and unnecessary comments
* Remove ${} from REMOVE_ITEM in cmakelist file
* Do not build srcn library on x86_64 machine
* Add return case for OpenMP library not installed
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 05:39:38 +0000 (14:39 +0900)]
[neurun] Appends apis to ITensorBuilder (#6973)
* [neurun] Appends apis to ITensorBuilder
Appends apis to ITensorBuilder for deallocating constant tensors if they
are unused and separating constant tensors and nonconstant tensors
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Change afterFunctionPrepare to postFunctionPrepare
* Fix default parameter of registerTensorInfo
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 04:52:29 +0000 (13:52 +0900)]
[neurun] Make {pre|post}Visit of TemplTensorBuilder recursive (#7064)
Make {pre|post}Visit of TemplTensorBuilder recursive to support for more
than two consecutive concat layers
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 04:33:20 +0000 (13:33 +0900)]
Update dockerfile - numpy (#7111)
Install python3 numpy for andorid-q test generator
Change python-pip to python3-pip
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 02:24:21 +0000 (11:24 +0900)]
Use static casting to convert enum type (#7104)
To resolve implicit enum type casting warning, introduce convert helper and use static casting
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 3 Sep 2019 01:08:24 +0000 (10:08 +0900)]
[res] Introduce UNIT_Mean_00X testcases (#7051)
This commit will introduce `UNIT_Mean_000` ~ `UNIT_MEAN_004`
testcases
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 3 Sep 2019 01:03:04 +0000 (10:03 +0900)]
[exo-tflite] Adding TFLShapeInferenceRule into ShapeInference (#7096)
* [exo-tflite] Adding TFLShapeInferenceRule into ShapeInference
This adds TFLShapeInferenceRule into ShapeInference.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* restore empty line
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 00:41:42 +0000 (09:41 +0900)]
Explicit type to prevent overflow (#7106)
To remove integer overflow warning by svace, use explicit type int64_t, not auto
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 00:38:54 +0000 (09:38 +0900)]
Fix copy constructor (#7102)
Fix uninitialized field in copy constructor
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 3 Sep 2019 00:36:24 +0000 (09:36 +0900)]
Fix deref null pointer error on scheduler (#7094)
Change to runtime error instead of assert for deref null pointer error on scheduler
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 22:30:59 +0000 (07:30 +0900)]
[exo-tflite] Introducing TFLMaxPool2D (#7087)
This adds TFLMaxPool2D into TFLDialect.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Sep 2019 22:20:14 +0000 (07:20 +0900)]
[moco-tf] Bugfix of FixShapeTransform of Squeeze (#7031)
If `Squeeze` operation have `squeeze_dims` as `[-1,-2]` and input rank is 4, it should be converted to `[2, 3]`
According to current implementation, the code erase -1 first and then put 3 in the `squeeze_dims`
However, it causes some bug. If -1 is erased, iterator of `squeeze_dims` points -2.
And then if 3 is inserted, the iterator points 3 because it is `Set`!
Now, `squeeze_dims` is `[-2, 3]` and iterator try to iterate next element but there is no more element
because 3 is the last element.
Therefore this commit will fix this bug by introducing new `Set`
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 22:06:44 +0000 (07:06 +0900)]
[moco-tf] Update FixShapeTransform test with AvgPool (#7041)
This will update FixShapeTransform test to test with TFAvgPool
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
[mir] Remove support for Reduce and Pool (#7074)
- Reduce and Pool operations were replaced by `ReduceMean`, `AvgPool2D` and `MaxPool2D`.
- Make `ReduceOp` a base class for `ReduceMeanOp`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir2loco] Remove support for PoolOp (#7071)
This operation was replaced by `AvgPool2DOp` and `MaxPool2DOp`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[nnc] Remove support for Reduce and Pool (#7057)
- These operation were replaced by `ReduceMean`, `AvgPool2D` and `MaxPool2D`.
- Pool operations are supported in DataFormatSwitcher optimization.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 09:06:39 +0000 (18:06 +0900)]
[exo-tflite] functions to build node (#7080)
This adds functions to build featureEncode and featureDecode, which are frequently used.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 09:04:59 +0000 (18:04 +0900)]
[exo-tflite] Adding knob for AveragePool2D conversion (#7092)
This adds knob for AveragePool2D conversion. Default is false.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Sep 2019 08:25:52 +0000 (17:25 +0900)]
Enable Floor op for ACL neon (#7100)
This commit enables to support Floor op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 08:24:26 +0000 (17:24 +0900)]
[exo-tflite] Adding TFLTypeInferenceRule into TypeInference (#7097)
This adds TFLTypeInferenceRule into TypeInference.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 07:55:58 +0000 (16:55 +0900)]
[tflite_loader] Add Mul and Sub operator (#7099)
It adds mul and sub operator to run ST model.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Sep 2019 06:54:24 +0000 (15:54 +0900)]
Fix uninitialized field (#7089)
Fix uninitialized field contructor warning in neurun core and backend
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Sep 2019 06:14:04 +0000 (15:14 +0900)]
Enable Exp op for ACL neon (#7093)
This commit enables to support Exp op for ACL neon.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 04:16:38 +0000 (13:16 +0900)]
[exo-tflite] Change the name of input of TFLRelu (#7081)
* [exo-tflite] Change the name of input of TFLRelu
Input name follows TensorFlow input naming. (input -> features)
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* modify input -> features
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 2 Sep 2019 04:08:32 +0000 (13:08 +0900)]
Apply finding frontend layout of operand (#7065)
This commit applies finding frontend layout of operand.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 04:08:03 +0000 (13:08 +0900)]
[tflite_loader] implement Relu6 operator (#7068)
It adds `Relu6` for mobilenet v3.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Sep 2019 03:45:24 +0000 (12:45 +0900)]
Fix null type reference (#7059)
Instead of using getOperandSize, use type pointer to find out operand has unspecified shape
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 2 Sep 2019 03:44:12 +0000 (12:44 +0900)]
[exo-tflite] Introducing TFLAveragePool2D node (#7054)
* [exo-tflite] Introducing TFLAveragePool2D node
This adds TFLAveragePool2D node, which represelt AVERAGE_POOL_2D of TensorFlow Lite.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* modified per jh1304's review. Filter and Stride were made
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 2 Sep 2019 00:56:33 +0000 (09:56 +0900)]
Coverity issue on scheduler (#7072)
- Unreached default in switch-case
- Unchecked return of library call
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 1 Sep 2019 23:03:02 +0000 (08:03 +0900)]
[exo-tflite] Introducing TFLTypeInference (#7015)
This adds TFLTypeInference to infer type for TFL nodes.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 1 Sep 2019 23:02:26 +0000 (08:02 +0900)]
[pepper-str] Fix "unused parameter" warning in CI (#7075)
This fix "unused parameter" warning in CI.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 09:59:01 +0000 (18:59 +0900)]
Remove unnecessary helper function (#7066)
This commit removes unnecessary helper function.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 09:41:08 +0000 (18:41 +0900)]
Make ConcatLayers support NCHW frontend layout (#7063)
This commit makes ConcatLayers support NCHW frontend layout.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 09:25:38 +0000 (18:25 +0900)]
[neurun] Use LIB_PTHREAD variable in CMake (#7069)
Use variable `${LIB_PTHREAD}` rather than hardcoded `pthread`. This is
useful for Android build which does not have pthread lib. Android
contains pthread in libc.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 08:37:25 +0000 (17:37 +0900)]
Revert commits related to mutex in acl_cl::Object (#7062)
- Revert "Fix deadlock when access two acl_cl at once (#6500)"
- Revert "[neurun] Change acl_cl::Object::access to multithread safe (#5636)"
This reverts commit
51671b098692a133d86624afc5455c6e01ef9302
This reverts commit
6097ce0e7d59be4342db40e1bfc104d5ec88c5fa
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
[mir_caffe] Switch to AvgPool2D and MaxPool2D ops (#7029)
Switch from `PoolOp` to `AvgPool2DOp` and `MaxPool2DOp`. The former ones are deprecated.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Aug 2019 07:32:17 +0000 (16:32 +0900)]
Check dladdr return value (#7061)
Check dladdr return value and log if fail to load
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Aug 2019 07:17:14 +0000 (16:17 +0900)]
Fix unused return value (#7060)
Fix unused return value of call for dimension valid check
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[mir_onnx] Switch GlobalAveragePool converter to AvgPool2DOp (#7049)
Switch from `PoolOp` to `AvgPool2DOp` in `GlobalAveragePool` converter. The former one is deprecated.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 30 Aug 2019 07:07:32 +0000 (16:07 +0900)]
[exo-tflite] Make "Check.h" to use pepper instead of pp (#7038)
* [exo-tflite] added pp into cmake scripts
`pp` is added into cmake scripts to use "Check.h", which includes a header in pp.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* pp to lightweight pepper::str
[mir] Remove operation names (#7016)
Names on operations were difficult to maintain.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Aug 2019 05:49:30 +0000 (14:49 +0900)]
Fix uncatched exception (#7058)
Operand::operandSize() can throw exeception because sizeOfDataType() in DataType.h can throw runtime exception
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 05:02:07 +0000 (14:02 +0900)]
[neurun] Resolve Division by zero in Softmax layer (#7055)
This commit will resolve division by zero in Softmax layer
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 30 Aug 2019 02:41:38 +0000 (11:41 +0900)]
[pepper-str] make a function in header inline (#7043)
* [pepper-str] make a function in header inline
This adds `inline` keyword to `str_impl(...)` function in header.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* added inline to all str_impl
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 30 Aug 2019 02:17:48 +0000 (11:17 +0900)]
[neurun] Implemented scheduler test with branched graph (#6926)
* [neurun] Implemented scheduler test with branched graph
* Implemented scheduler test with branched graph and known execution time
* Added set time methods to ExecTime
* Refactored existing scheduler test a little bit
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* 'set' methods from ExecutionTime replaced with helper functions
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* remove profile data before test
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* Review fixes
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* Increased execution time for GPU in last test
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* Set correct large exec time for gpu
Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 30 Aug 2019 01:43:27 +0000 (10:43 +0900)]
[neurun] Prettified HE scheduler a little bit (#6982)
* [neurun] Prettified HE scheduler a little bit
* Removed backend transfer time from _run_cache
* _run_cache replaced with _preferred_operations
* Profiling information existence checks added
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* Review fixes
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 30 Aug 2019 01:39:28 +0000 (10:39 +0900)]
[neurun] Made scheduler to shuffle backends after all nodes are profiled (#7010)
[neurun] Made scheduler to shuffle backends after all nodes are already profiled
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 00:59:05 +0000 (09:59 +0900)]
[neurun] Introduce ITensorManager to be used as MemoryManager (#7048)
Introduce ITensorManager to be used as MemoryManager instead of existing
MemoryManager in the future.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 30 Aug 2019 00:44:59 +0000 (09:44 +0900)]
[moco-tf] Delete FixPaddingTransform (#7042)
This will delete unused FixPaddingTransform
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 30 Aug 2019 00:04:32 +0000 (09:04 +0900)]
[tf2tflite] Enable moco logs via TF2TFLITE_Log_Frontend (#7040)
Let's use TF2TFLITE_Log_Frontend instead of MOCO_LOG.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 30 Aug 2019 00:04:20 +0000 (09:04 +0900)]
[res] Introduce UNIT_Squeeze_003 test (#7039)
This test is for checking that `Squeeze` operation handle multiple negative
squeeze_dims or not
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
[mir_tflite] Switch to AvgPool2D and MaxPool2D ops (#7024)
Switch from `PoolOp` to `AvgPool2DOp` and `MaxPool2DOp`. The former ones are deprecated.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_caffe2] Switch to AvgPool2D and MaxPool2D ops (#7032)
Switch from `PoolOp` to `AvgPool2DOp` and `MaxPool2DOp`. The former ones are deprecated.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir_onnx] Switch to AvgPool2D and MaxPool2D ops (#7023)
Switch from `PoolOp` to `AvgPool2DOp` and `MaxPool2DOp`. The former ones are deprecated.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir2loco] Add support for AvgPool2D and MaxPool2D (#7022)
These operations are the future replacement of the `Pool` operation.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>