이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 07:52:14 +0000 (16:52 +0900)]
[dotdump] Show Backend ID for each Subgraph (#5716)
This commit makes it to show Backend ID for each Subgraph. `fillcolor`
member is introduced but not used yet.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Add performance test for scheduler and profiler (#5675)
* Add performance test for scheduler and profiler
Add a script to test performance of scheduler and profiler.
Since each model it compiles and executes 9 times, it takes
much time to finish.
Related issue: 5660
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Fix comment of PROFILING_RUN_CNT
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Move exec_time.json to log dir, not remove
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Add some more fixes
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 06:40:42 +0000 (15:40 +0900)]
Apply refactored ConstantInitializers (#5713)
This commit applies refactored ConstantInitialzers.
- Introduce ConstantInitializer into each backend.
- Replace legacy ConstantInitializer with refactored ConstantInitializer.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 06:02:53 +0000 (15:02 +0900)]
Support SquaredDifference operation for acl_neon backend (#5704)
This commit supports SquaredDifference operation for acl_neon backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
[neurun] Redo exec::IFunction::runSync to abstract (#5697)
If its new derived class is created and forgot to override
profiling will work incorrectly. So, making it abstract
garantees that it will be overridden
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 04:36:08 +0000 (13:36 +0900)]
Support SUB operation for acl_neon backend (#5703)
This commit supports SUB operation for acl_neon backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 19 Jul 2019 04:35:35 +0000 (13:35 +0900)]
Gather info in Execution class setInput & setOutput (#5701)
Fill _io_desc field in setInput/setOutput method
Check length correctness (setInput/setOutput in IExecutor family will be removed)
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[neurun] Save mean of exec times during profiling (#5698)
Since just one run/measurement isn't robust, user may
want to run profiling several times. There fore instead
of rewriting existing measurements, save the mean
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 04:19:05 +0000 (13:19 +0900)]
Introduce ConstantInitializer into cpu backend (#5694)
This commit introduces ConstantInitializer into cpu backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 04:05:31 +0000 (13:05 +0900)]
Support RSQRT operation for acl_neon backend (#5705)
This commit supports RSQRT operation for acl_neon backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 19 Jul 2019 03:27:51 +0000 (12:27 +0900)]
Relocate documents in docs (#5683)
* Relocate documents in docs
Relocate documents in docs into docs/nnfw to
- Avoid conflict when repo merging
- Avoid confusion when document merging after repo merging
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix Readme and move doxygen config into infra
* Fix link to 2018_high_level_design.md
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 02:19:50 +0000 (11:19 +0900)]
Revise planTensors in Linear (#5689)
* Revise planTensors in Linear
- Introduce tensor_builder_map instead of iterTensorBuilders
- Replace the type of constants from std::vector<model::OperandIndex>
to model::OperandIndexSequence constants
- Add model::OperandIndexMap<uint32_t> def_map
- Append the step for disposing and validation
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Avoid cases where insertion of unordered_map could happen
Derive both INETensor and ICLTensor from common base IACLTensor (#5706)
This is to reduce code duplication (almost all code from derived classes has been moved to base) and simplify their usages through base class.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 19 Jul 2019 00:38:41 +0000 (03:38 +0300)]
[shape_inference] Implemented shape inference for convolutions (#5667)
* Implemented shape inference for conv 2d
* Implemented shape inference for depthwise conv 2d
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Jul 2019 10:29:39 +0000 (19:29 +0900)]
Fix coverage report command (#5688)
Fix coverage report command because libs and include are moved into runtimes
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 18 Jul 2019 09:29:01 +0000 (18:29 +0900)]
Fix inclusion guard for Subgraphs (#5696)
SubgraphContext was renamed. Thus, inclusion guard is renamed.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 18 Jul 2019 09:28:27 +0000 (18:28 +0900)]
Refine implementation of Subgraphs (#5691)
Refine implementation of Subgraphs as suggested in #5658.
- Rename `findOperation` to `getOperation`
- Introduce a common base function for `getOperation` and
`containsOperation`
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 18 Jul 2019 08:32:59 +0000 (17:32 +0900)]
Introduce ConstantInitializer into acl neon backend (#5693)
This commit introduces ConstantInitializer into acl neon backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 18 Jul 2019 08:32:44 +0000 (17:32 +0900)]
Introduce ConstantInitializer into acl cl backend (#5692)
This commit introduces ConstantInitializer into acl cl backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Jul 2019 08:05:02 +0000 (17:05 +0900)]
Ignore nncc-related directories in format-check (#5686)
Ignore nncc-related directories
- clang-format style mismatch
- nncc don't have format for python yet
- Exec file permission in infra/nncc
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Jul 2019 07:30:48 +0000 (16:30 +0900)]
Introduce IODescription struct (#5678)
Introduce IODescription, InputDesc, and OutputDesc struct to gather input and output buffer information in execution instance
Introduce IODescription field in Execution class
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 18 Jul 2019 07:19:38 +0000 (10:19 +0300)]
[shape_inference] Implemented shape inference for max pooling (#5654)
* [neurun] Made ShapeInference to consume shapes instead of nodes
Made ShapeInference to consume shapes instead of nodes
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* [shape_inference] Implemented shape inference for max pooling
Implemented shape inference for max pooling
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 18 Jul 2019 07:17:03 +0000 (16:17 +0900)]
[dotdump] Show operation color (#5687)
- Show operation's color according to the assigned backend
- Simplify color scheme selection
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 18 Jul 2019 06:54:32 +0000 (15:54 +0900)]
Introduce IConstantInitializer (#5677)
Introduce IConstantInitializer into backend to initialize constant for each operation.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Jul 2019 04:40:49 +0000 (13:40 +0900)]
Add Squared Difference for nnapi_delegate (#5685)
- Add tflite::BuiltinOperator_SQUARED_DIFFERENCE into nnapi_delegate.cpp
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 18 Jul 2019 04:40:07 +0000 (13:40 +0900)]
Rename SubgraphContext (#5679)
Rename `SubgraphContext` to `Subgraphs` so it follows the naming rule
like `Operations` and `Operands`. Variable name `subg_ctx` is also
replaced with `subgraphs`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 18 Jul 2019 01:37:08 +0000 (10:37 +0900)]
Relocate include directory (#5684)
Relocated include directory to runtimes/include
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 17 Jul 2019 10:34:51 +0000 (19:34 +0900)]
Chnage DotDumper implementation (#5661)
This commit changes `DotDumper`'s dumping procedure so we can change
attributes of `Node` after creation.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 17 Jul 2019 09:29:33 +0000 (12:29 +0300)]
[shape_inference] Implemened shape inference for fully connected node (#5671)
Implemened shape inference for fully connected node
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Jul 2019 07:57:48 +0000 (16:57 +0900)]
[xray-mux] Build as a shared library (#5674)
It turns out that "xprobe" cannot access "pipe" implementation in "mux"
if it is built as a static library.
Let's fix this issue by building "xray-mux" as a shared library.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Jul 2019 06:48:34 +0000 (15:48 +0900)]
Use execution instance on frontend (#5664)
Use execution instance on nnapi, tflite loader, nnfw api
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 17 Jul 2019 06:08:56 +0000 (09:08 +0300)]
[neurun] Made concat axis int32_t type (#5670)
Made concat axis int32_t type instead of OperandIndex
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Jul 2019 05:39:26 +0000 (14:39 +0900)]
Fix pointless string warning in operation.py (#5672)
Pylint warning: pointless-string-statement
Change to comment
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 17 Jul 2019 05:13:52 +0000 (14:13 +0900)]
Refactor SubgraphContext (#5658)
- `SubgraphContext` inherits `ObjectManager`
- Rename method `append` to `emplace`
- Rename method `hasNode` to `containsOperation`
- Rename method `findNode` to `findOperation`
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Jul 2019 04:56:29 +0000 (13:56 +0900)]
Add gtest to prepare multiple execution instance run (#5568)
* Test to prepare multiple execution instance run
Introduce gtest to prepare multiple execution instance using one executor
Move interpreter gtest into exec to match with core directory structure
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Use expected value array
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Jul 2019 02:37:01 +0000 (11:37 +0900)]
Relocate contrib and libs (#5663)
* Relocate contrib and libs
Move contrib and libs into runtimes
Update CMakeLists.txt
Fix typo in CMakeLists.txt
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update .gitignore and remove generated files
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 17 Jul 2019 01:33:23 +0000 (10:33 +0900)]
Add comments for notifying Observers (#5668)
Using only 0th operation of the subgraph is a workaround.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 17 Jul 2019 01:07:07 +0000 (10:07 +0900)]
[model parser] Fix operation.py (#5626)
Change to instance method in _OperationComputeMethod class
Not working now because static method don't have "__name__" field
Change operation comment
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Remove accidently commited file (#5659)
Remove `format.patch` accidently commited recently.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Jul 2019 11:23:24 +0000 (20:23 +0900)]
Move command and dockerfile (#5662)
Move command to infra/nnfw/command
Move dockerfile to infra/nnfw/docker
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Jul 2019 11:20:05 +0000 (20:20 +0900)]
Introduce Execution class (#5655)
Introduce Execution class to support execution instance
Execution object will gather input/output info and prepare executor's run
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[neurun] Use noWaitingJobs in ParallelExecutor and fix wait in its executeImpl (#5657)
Waiting just for `!_ready_jobs.empty()` is wrong, because when wait returns false
and unlocks the lock, some other thread may finish the waiting jobs and
`_ready_jobs` may never been inserted
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
[neurun] Schedule ops in holes/gaps of a backends (#5557)
So far scheduler assumed a backend is occupied totally and there is no
gaps/holes between two tasks. This change adds this support.
Also, this change adds the concideration of occupation of cpu bywq! permutation
Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
[neurun] Fix linear interpolation in ExecTime::getOperationExecTime (#5614)
In some cases ops with smaller inputs is executed slower than the one
with larger inputs, more likely because of a backend's load difference.
In such cases result of lin-interpolation is negative, which is wrong
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Jul 2019 09:21:47 +0000 (18:21 +0900)]
Move cmake directory (#5648)
* Move cmake directory
Move cmake script directory to infra/nnfw/cmake
Move root CMakeLists.txt to infra/nnfw
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Define NNFW_SOURCE_ROOT and use
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 16 Jul 2019 08:10:06 +0000 (17:10 +0900)]
Enable acl layout test again (#5650)
* Enable acl layout test again
This commit enables acl layout test again.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Apply layout for padding data of PadLayer
This commit applies layout for padding data of PadLayer.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Jul 2019 08:09:53 +0000 (17:09 +0900)]
Update install-githooks command (#5647)
- Use NNFW_PROJECT_PATH instead of relative path
- Check pre-push hook existance and update with backup or remove
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 16 Jul 2019 05:17:04 +0000 (14:17 +0900)]
Fix pylint warning in tf model freezer (#5632)
Fix pylint warning by
- Pointless string (for comment): change to comment
- Bad super parameter: change old style self.__class__ to classname itself
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 16 Jul 2019 03:39:02 +0000 (06:39 +0300)]
[neurun] Sequance replaced with FunctionSequance in linear executor (#5653)
* [neurun] Sequance replaced with FunctionSequance
* Sequance replaced with FunctionSequance in linear executor
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* Fixed formatting
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 16 Jul 2019 03:27:26 +0000 (12:27 +0900)]
Fix set output shape incorrectly of PermuteLayer (#5649)
This commit fixes set output shape incorrectly of PermuteLayer.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Tue, 16 Jul 2019 01:04:55 +0000 (04:04 +0300)]
[neurun] Made ShapeInference to consume shapes instead of nodes (#5652)
Made ShapeInference to consume shapes instead of nodes
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 10:46:22 +0000 (19:46 +0900)]
Move git push hook install script (#5643)
- Make git hook install to command
- Move hook script to infra/nnfw/git-hooks
- Change hook script name: .sh file extension
- Update format checker: remove exceptional check policy for hook script
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 15 Jul 2019 10:35:40 +0000 (19:35 +0900)]
Remove ConfigManager that is no longer used (#5641)
Now `ConfigSource` is used instead.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 10:24:34 +0000 (19:24 +0900)]
Upgrade to tensorflow v1.13.1 (#5590)
* Upgrade to tensorflow v1.13.1
- update link to v1.13.1
- tensorflow/contribe/lite to tensorflow/lite
- TFLITE_MINOR_VER to 13
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* upgrade absl to
389ec3f90
* add custom for SquaredDifference
* Fix x64 build error(Eigen)
- update eigen version to
88fc23324517
* fix wrong comment : lite -> contrib/lite
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 15 Jul 2019 10:16:49 +0000 (19:16 +0900)]
Refactor IDotInfo and its derivatives (#5581)
This commit refactors `IDotInfo` and its derivatives - `DotOperandInfo`
and `DotNodeInfo`.
- `IDotInfo` -> `Node` (represents "Node" of DOT format)
- `DotOperandInfo` -> `OperandNode`
- `DotNodeInfo` -> `OperationNode`
- `NodeAttr` -> removed
Now `Node` manages a map of attributes which behaves almost same with
`NodeAttr` so it has been removed.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 09:01:40 +0000 (18:01 +0900)]
Fix gbs build script and configure file (#5640)
Fix configure file path
Remove useless password (obs_viewer - readonly don't need password)
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 08:59:50 +0000 (17:59 +0900)]
[model parser] Update to support model using tensorflow 1.13.1 (#5625)
Update generated API files from schma.fbs in tensorflow 1.13.1
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[neurun] Change acl_cl::Object::access to multithread safe (#5636)
Calling access for more than one tensor causing an error in map()
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
Make dedicated class for neurun's tensor shape (#5621)
Related issue: #5472
Remove dependency of model::Shape on misc::tensor::Shape.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 08:37:58 +0000 (17:37 +0900)]
[kbenchmark] rename acl kernel directory (#5570)
* [kbenchmark] rename acl kernel directory
armcl to acl_cl
armne to acl_neon
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* Change the include directory path
* Do not print psABI warnings
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 08:20:21 +0000 (17:20 +0900)]
Relocate nnfw configurations (#5638)
- Introduce and use import function to remove dependency with NNFW_SCRIPT_PATH in commands
- Move script/config to infra/nncc/config directory
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[neurun] Use Object instead of ICLTensor in acl_cl::concat (#5637)
This change is done to replace explicitely calling acl::map/unmap
with Object::access, so that we can controll it in one place.
This change is needed for PR 5636
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
[neurun] Switch to KernelGenerator and remove StageGenerator (#5615)
Related issue: #5460
Related draft: #5481
Switch to KernelGenerator and remove StageGenerator.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 15 Jul 2019 07:04:54 +0000 (10:04 +0300)]
[neurun] Implemented shape inference for AvgPool2DNode (#5624)
* Implemented shape inference for AvgPool2DNode
* Implemented unittests for AvgPool2DNode shape inference
* Minor fixes in ShapeInference
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 04:36:06 +0000 (13:36 +0900)]
Fix pylint warning in image importer (#5631)
Fix pylint warning for print syntax in image importer
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 15 Jul 2019 01:25:01 +0000 (10:25 +0900)]
Fix pylint warning in weight extract tool (#5629)
Fix pylint warning for print syntax in weight extract tool
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 12 Jul 2019 06:44:15 +0000 (15:44 +0900)]
Fix pylint warning in summarize pb file tool (#5630)
Fix pylint warning (anomalous backslash) in summarize pb file tool by attaching "r" prefix
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 12 Jul 2019 05:01:37 +0000 (14:01 +0900)]
Introduce pylint command (#5628)
Introduce pylint command with custom warning policy
Except external codes (using file format deny .FORMATDENY)
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 12 Jul 2019 02:39:21 +0000 (11:39 +0900)]
Copy template makefile in standalone scripts (#5618)
* Copy template makefile in standalone scripts
Make Makefile by copying Makefile.template with -nv option and build in standalone scripts and nnfw.spec
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix command
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 11 Jul 2019 10:00:11 +0000 (19:00 +0900)]
Calculate same padding using IFM shape (#5535)
Divide same padding size calculatation using IFM shape only, and check OFM shape validation.
Divided function may be used to calculate same padding size with unspecified OFM shape.
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 11 Jul 2019 09:28:48 +0000 (18:28 +0900)]
Introduce global ConfigSource interface (#5617)
* Introduce global ConfigSource interface
Have a global `IConfigSource` which can be replaced by a global
function. By doing this, neurun core can only read(get) the value and
values can be set from outside of neurun core.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Fix initialization
* Handle default values
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 11 Jul 2019 06:14:35 +0000 (15:14 +0900)]
Fix pylint warning in tflitefile_tool (#5606)
Fix pylint warning in tflitefile_tool
- "dummy_" prefix for unused variable
- staticmethod keyword for static method
- Use sharp for comment instead of triple quote
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 11 Jul 2019 03:54:56 +0000 (12:54 +0900)]
Remove makefile (#5595)
* Remove makefile
Rename Makefile to Makefile.template to remove Makefile
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Update build script and gitignore list file
* Update template makefile and standalone scripts
[nnfw_api] Prevent memory leakage in `nnfw_session::prepare` method (#5602)
Use `make_unique` to ensure memory is freed in case of exception.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 10:04:27 +0000 (19:04 +0900)]
[nnpackage] Rename tensorflow lite's names (#5613)
namespace, file_identifier and file_extension are renamed.
our copyright is pretended.
revision history has only 1 line (for version 0).
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 08:26:51 +0000 (17:26 +0900)]
Update git ignore file (#5596)
Cleanup .gitignore file to manage files generated by official tool only
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 06:09:35 +0000 (15:09 +0900)]
[nnpackage] add missing semicolon from nnpackage schema (#5612)
Add missing semicolon at end of `DataFormat`.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 10 Jul 2019 05:22:15 +0000 (08:22 +0300)]
[neurun] ACL CL kernel generation functionality moved into KernelGenerator (#5584)
ACL CL kernel generation functionality moved from StageGenerator into KernelGenerator
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 10 Jul 2019 05:22:03 +0000 (08:22 +0300)]
[neurun] ACL NEON kernel generation functionality moved into KernelGenerator (#5583)
ACL NEON kernel generation functionality moved from StageGenerator into KernelGenerator
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 10 Jul 2019 05:21:53 +0000 (08:21 +0300)]
[neurun] CPU kernel generation functionality moved into KernelGenerator (#5582)
CPU kernel generation functionality moved from StageGenerator into KernelGenerator
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 02:17:18 +0000 (11:17 +0900)]
Implement nnfw_run,set_input,set_output (#5605)
- Implement nnfw_run, nnfw_set_input, nnfw_set_output
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
Vladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 [Wed, 10 Jul 2019 02:09:27 +0000 (05:09 +0300)]
[neurun] [nnapi] Meaningful exception message (#5603)
* [neurun] [nnapi] Meaningful exception message
Throw exception with meaningful description in case of unsupported operation
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
* Format fix
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 10:11:19 +0000 (19:11 +0900)]
Fix tflite loader build bug (#5594)
Build tflite loader tool when neurun is built
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 09:59:48 +0000 (18:59 +0900)]
Implement nnfw_prepare (#5585)
* Implement nnfw_prepare
- Add implementation for nnfw_prepare
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* delete compiler after compile
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 09:43:02 +0000 (18:43 +0900)]
Move tflite loader (#5589)
- Move tflite loader into neurun/frontend
- Move tflite loader tool to tests/tools
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 9 Jul 2019 06:46:30 +0000 (15:46 +0900)]
Move ConfigManager.cc to the upper directory (#5586)
`ConfigManager.cc` should have been moved to the upper directory from
PR #5555 but it wasn't. So this commit fixes it.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 05:11:35 +0000 (14:11 +0900)]
Remove externals/.FORMATDENY file (#5587)
Remove remain externals/.FORMATDENY file in external to remove externals directory in repo
Make directory in nnfw.spec to copy saved external code
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 04:27:32 +0000 (13:27 +0900)]
Move script for generate test (#5578)
Move script in externals/nnapi_test_generator to generate nnapi gtest
Update gitignore - remove deprecated directory
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 04:27:16 +0000 (13:27 +0900)]
Move lcov-to-cobertura-xml script (#5580)
Move externals/lcov-to-cobertura-xml directory to tools/
Remove external tool dependency in gen-coverage-report command
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 9 Jul 2019 04:12:56 +0000 (13:12 +0900)]
[nnpackage] update specification to add model-types attribute (#5572)
`MANIFEST` will have `model-types` attributes to identify what kind of
models it contins.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 8 Jul 2019 10:16:37 +0000 (13:16 +0300)]
[neurun] Initial implementation of KernelGenerator (#5574)
* Implementated KernelGenerator interface
* Implemented empty KernelGenerator classes for each backend
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 08:18:37 +0000 (17:18 +0900)]
Remove CMAKE_SOURCE_DIR in cmake script (#5576)
- Change CMAKE_SOURCE_DIR/externals to NNFW_EXTERNALS_DIR
- Remove some target_include_directories using CMAKE_SOURCE_DIR: because of linked libraries already include with PUBLIC
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 8 Jul 2019 05:56:29 +0000 (08:56 +0300)]
[tflite_loader] Perform tflite_loader tests while testing neurun cpu (#5526)
Perform tflite_loader tests while testing neurun cpu
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 04:50:45 +0000 (13:50 +0900)]
Remove mobilenet tests in nnapi generated test (#5554)
Comment out mobilenet recipes in nnapi generated test
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 5 Jul 2019 10:58:01 +0000 (19:58 +0900)]
Decouple ConfigManager with Env Vars (#5565)
- `IConfigSource` is introduced
- `ConfigManager` gets value through `IConfigSource`
- `EnvConfigSource` is a subclass of `IConfgSource` that gets values
from Env Vars
Resolve #5556
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 06:11:32 +0000 (15:11 +0900)]
Implement nnfw_load_model_from_file (#5533)
- accept nnpackge directory as argument.
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Fri, 5 Jul 2019 01:17:18 +0000 (04:17 +0300)]
[tflite_loader] Supported models with multiple output tensors (#5525)
* [tflite_loader] Supported models with multiple output tensors
Supported models with multiple output tensors
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 5 Jul 2019 01:15:45 +0000 (10:15 +0900)]
[nnpackage] update spec for multiple layout (#5553)
Multiple layout is added in specification.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
윤지영/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 10:08:40 +0000 (19:08 +0900)]
[kbenchmark] Add TransposeConv kernel (#5546)
This patch adds acl cl and neon TransposeConv kernel test sets.
It also tests CLDeconvolutionLayerEx.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 4 Jul 2019 09:59:38 +0000 (12:59 +0300)]
[neurun] Applied shape fixer (#5549)
Applied ShapeFixer, removed ShapeFixer functionality from StageGenerator
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>