박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Jul 2019 05:27:11 +0000 (14:27 +0900)]
[moco-tf] Introduce TFSqueeze dialect node (#5843)
* [moco-tf] Introduce TFSqueeze dialect node
This commit introduces TFSqueeze dialect node.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Use 'squeeze_dims' instead of 'axis'
Vladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 25 Jul 2019 05:25:16 +0000 (08:25 +0300)]
[neurun] Add custom operation node (#5598)
Used as a base node for all custom operations. For general design see at #5411
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 25 Jul 2019 05:01:30 +0000 (14:01 +0900)]
[neurun] Remove unused prepare method (#5850)
IFunction interface declares prepare method, but no code invokes this
method.
Let's remove this used prepare method.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 25 Jul 2019 04:48:13 +0000 (13:48 +0900)]
Remain unified format check script only (#5861)
Remove nncc/nnfw format check script
Remove all .FORMATCHECKED
Add .FORMATDENY into some directories to ignore format check
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Jul 2019 04:26:56 +0000 (13:26 +0900)]
[moco-tf] Run for active nodes for FixPad and FixShape (#5862)
This will fix to run for active nodes from outputs for FixPadding and FixShape transformations
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Decouple ONNX frontend (#5755)
Remove dependencies of `ONNXImporterImpl` on other `nnc` components.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Decouple caffe2 frontend (#5754)
Remove dependencies of `Caffe2Importer` on other `nnc` components.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Decouple caffe frontend (#5753)
Remove dependencies of `CaffeImporter` on other `nnc` components.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 25 Jul 2019 04:10:39 +0000 (13:10 +0900)]
Replace githook and install (#5860)
Replace githook to infra/git-hooks
Replace githook install command to infra/command
Update path in script
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Decouple TFLite frontend (#5752)
Remove dependencies of `TfliteImporter` on other `nnc` components.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Reformat mir component (#5847)
Reformat code according to coding style.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Jul 2019 03:51:56 +0000 (12:51 +0900)]
[moco-tf] Introduce TFReshape dialect node (#5863)
This commit introduces TFReshape dialect node.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
Павел Ильютченко/AI Tools Lab /SRR/Engineer/삼성전자 [Thu, 25 Jul 2019 03:50:09 +0000 (06:50 +0300)]
[mir2loco] Introduce MIR to Loco transformer (#5751)
* Implemented core structure
* Supported 2 ops: Input and Output
* Unit test for input and output operations
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Jul 2019 02:46:46 +0000 (11:46 +0900)]
[moco-tf] Introduce IdentityCanonicalizer (#5854)
* [moco-tf] Introduce IdentityCanonicalizer
This will introduce Identity node Canonicalizer
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix comment
* another fix comment
Unify PermuteLayer::runTempl and use Object::access (#5778)
For all types of PermuteNode::Type, runTempl does the same calculation.
The only difference is for rank==4. Unify it and move switch for type
into rank==4 case
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 25 Jul 2019 02:04:15 +0000 (11:04 +0900)]
Fix format script bug (#5858)
Fix format script bug checking environment variable
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 25 Jul 2019 01:30:21 +0000 (10:30 +0900)]
Change tab size in format script (#5852)
Fix tab size to 2 in format script
Same tab size with other scripts in infra/nncc/command and infra/nnfw/command
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Jul 2019 01:17:36 +0000 (10:17 +0900)]
[moco-tf] Fix test of fix shape and pad transform (#5848)
This will set outputs of test graph for FixShape and FixPadding transform
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Jul 2019 00:59:31 +0000 (09:59 +0900)]
[moco-tf] Constant Folding Transform for Canonical Dialect (#5759)
* [moco-tf] Constant Folding Transform for Canonical Dialect
This commit adds constant folding transform for canonical dialect, plus a test and build files.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* revised
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Jul 2019 00:30:17 +0000 (09:30 +0900)]
Update ExecutorFactory comments (#5844)
Update outdated comments in `ExecutorFactory.cc`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Jul 2019 00:21:09 +0000 (09:21 +0900)]
[moco-tf] Remove knob condition for Canonicalizer (#5833)
This will remove condition with knob for checking for specific TF dialect node
With this change there should be no TF dialects after Canonicalization
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 25 Jul 2019 00:14:10 +0000 (09:14 +0900)]
[moco-tf] Introduce TFIdentity IR (#5839)
This will introduce TFIdentity IR for TensorFlow Identity node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 25 Jul 2019 00:13:39 +0000 (09:13 +0900)]
[moco-tf] ShapeInferenceData equality operator (#5845)
This commit introduces equality operator for ShapeInferenceData.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 23:46:22 +0000 (08:46 +0900)]
[moco-tf] Remove unused header (#5841)
"CompilerArgs.h", which is not used, was removed.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 23:45:31 +0000 (08:45 +0900)]
[moco-tf] Fix transformation changed info (#5836)
This will fix to show transformation has change the graph where it was like
once changed is true then all other transformations in a phase will show as changed
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 22:43:02 +0000 (07:43 +0900)]
[locoex/custom op] enhancing locoex custom op (#5810)
Now customop node can store dtype info. Two methods are defined as const.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
[neurun] Unify pull and push of Sink and Source (#5808)
* Unify pull and push of Sink and Source
All calculations are the same except the case rank==4
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Remove pushUnif and pullUnif from highest level base
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Remove "override"
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 11:18:47 +0000 (20:18 +0900)]
Remove setInput and setOutput in IExecutor (#5832)
Remove setInput/setOutput in IExecutor and ExecManager
Remove deprecated setInput/setOutput in ExecutorBase
Internally used setInput/setOutput in ExecutorBase: rename to source/sink and change to private
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Jul 2019 11:15:04 +0000 (20:15 +0900)]
Remove PlanBuilder (#5838)
Now `PlanBuilder` is redundant class which just makes harder to read
code. So its behavior is moved to `createLinearExecutor`, just like
`createDataflowExecutor` does.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 10:59:45 +0000 (19:59 +0900)]
Update format check script (#5829)
From nncc format checker
- Update clang-format tool checking
- Return false if git diff remain
- Support running format check from outside nnfw repo directory
Script update
- Merge tool check and file check function
- Move environment variable check for c++/python check
- Remove git submodule check
- Update file search condition to find c++ and python
- Use bracket for script variable
- Add function keyword
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 10:56:08 +0000 (19:56 +0900)]
[moco-tf] setup_output_node for unittest (#5828)
* [moco-tf] setup_output_node for unittest
This will introduce setup_output_node() in test helper to add Push node as graph outputs
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* edit comment
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 10:09:10 +0000 (19:09 +0900)]
Enable gtest for two live execution instance (#5831)
Enable gtest to test multiple live execution instance using one executor
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 09:38:52 +0000 (18:38 +0900)]
[moco-tf] default name for TFNodeSummaryBuilder (#5817)
This will change to show default name for TFNodeSummaryBuilder and not to break while testing cause of unimplementation
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 09:26:07 +0000 (18:26 +0900)]
Set thread count for tflite_run (#5830)
Set thread count for tflite_run by using THREAD environment variable
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 08:33:44 +0000 (17:33 +0900)]
Support resize input in tflite_run (#5821)
Support resize input in tflite_run by using --ishapes argument
Example:
./Product/out/bin/tflite_run --ishapes 1 90 160 3 --tflite 131_x2_deconv.tflite
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Jul 2019 07:29:48 +0000 (16:29 +0900)]
[locomotiv] Reshape node accepts tensor only (#5798)
Reshape loco node is defined to accept tensor only. This commit corrects
this fact on locomotiv.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Jul 2019 07:09:47 +0000 (16:09 +0900)]
Rename model to graph which is a Graph (#5820)
`_model` was misnamed and could be confusing since we use "Model" and
"Graph" differently in our source so this commit renames it to `_graph`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 07:09:00 +0000 (16:09 +0900)]
[exo-tflite] Use loco type inference framework (#5807)
This commit revises the implementation of exo-tflite type inferene framework
by using loco type inference framework.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 07:08:47 +0000 (16:08 +0900)]
[locop] Define << operator and dependent class in the same namespace (#5800)
The current implementation defines operator<< on loco::TensorShape
in anonymous namespace, which results in undefined behavior when it
is invoked from external libraries (such as pp).
This commit introduces FormattedTensorShape as a wrapper to mitigate
this undefined behavior.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
[neurun] Elimination data transfer assumption in Scheduler (#5818)
Eliminate multiplying data tranfer time by 2 and calculate
free time slot for permutation
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 05:34:52 +0000 (14:34 +0900)]
Apply coding style to compiler modules (#5812)
Apply coding style to
- cli
- moco-onnx
- nnop
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 05:12:28 +0000 (14:12 +0900)]
Remove IExecutor's setInput and setOutput call (#5785)
* Remove IExecutor's setInput and setOutput call
Pass gathered input/output description when call IExecutor's executor() instead of call setInput and setOutput in IExecutor interface
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Handle optional input/output in ExeucotrBase
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 05:04:36 +0000 (14:04 +0900)]
[i5diff] Use std::vector instead of variable-length array (#5795)
This commit updates i5diff to use std::vector instead of variable-length
array. This change resolves "variable-sized object may not be initialized"
warning.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 04:48:06 +0000 (13:48 +0900)]
Apply python coding style to res (#5816)
Apply python coding style to python scripts in res/
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 04:04:11 +0000 (13:04 +0900)]
Introduce nnas command script (#5815)
Introduce 'nnas' command script to support unified command.
Call nnas fomart command in nnfw format-check command and remove workaround in 'nnfw'.
'nnas' is almost same with 'nncc' or 'nnfw'.
Remove deprecated NNAS_SCRIPT_PATH.
Relocate import() function.
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 03:15:33 +0000 (12:15 +0900)]
Replace and rename format checker (#5805)
Replace nnfw format checker to infra/command
Rename to format
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Unify copyInit and permuteInit of IConstantInitializer (#5803)
All calculations are the same except the case rank==4
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 24 Jul 2019 02:59:51 +0000 (11:59 +0900)]
Rename scripts with execution permission (#5801)
Rename to have extension '.sh' if script file has execution permission
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Jul 2019 02:21:01 +0000 (11:21 +0900)]
Simplify BackendSet implementation (#5792)
Simplify `BackendSet` using templatized implementation `util::Set<T>`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 02:15:28 +0000 (11:15 +0900)]
[moco-tf] introduce as_feature_shape (#5796)
* [moco-tf] introduce as_feature_shape
This will introduce as_feature_shape for ShapeInferenceData that will return converted feature shape if it's tensor shape with given data layout
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use TFDataLayout
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Jul 2019 01:56:31 +0000 (10:56 +0900)]
Move Scheduler.h into private directory (#5789)
Move `Scheduler.h` into private directory since this file does not have
to be public.
Fix #5776
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 01:49:49 +0000 (10:49 +0900)]
[moco-tf] Rename AvgPool (#5802)
This will rename related with AvgPool node
- Canonical AvgPool2D is as-is
- TFAvgPool2D to TFAvgPool
- Rename files as it's import of TensorFlow AvgPool
- Change related tests
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 24 Jul 2019 01:34:18 +0000 (10:34 +0900)]
[moco-tf] Inroduce WindowData annotation (#5797)
This will introduce WindowData to annotate temporary window attribute for Pooling nodes
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 24 Jul 2019 00:02:41 +0000 (09:02 +0900)]
[locomotiv] Use array instead of set for test Session (#5779)
* [locomotiv] Use array instead of set for test Session
To avoid undefined behavior, this commit use array instead of set to
make Session from iterator range.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Use aggregate initializer to be simple
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 11:42:37 +0000 (20:42 +0900)]
Introduce GeneralConfigSource (#5784)
Introduce `GeneralConfigSource` which is a derivative of `IConfig`.
Unlinke `EnvConfigSource`, this provides `set` method so users can call
it via API.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Add scheduler for Linear Executor (#5775)
* Add scheduler for Linear Executor
Add scheduler for Linear executor and fix calculating
free time for permutation of current node's inputs
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Remove data transfer time related changes
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Jul 2019 10:23:29 +0000 (19:23 +0900)]
Update gtest for two live execution instance (#5719)
* Update gtest for two live execution instance
Update ExecInstance gtest to use execution instance
Fix bug using two executor
Add gtest for for two live execution instance using one executor, but disable
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Fix memory leak
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Jul 2019 10:22:57 +0000 (19:22 +0900)]
[loco] Introduce CanonicalTypeInferenceRule class (#5768)
This commit introduces CanonicalTypeInferenceRule class which implements
TypeInferenceRule interface for loco canonical dialect.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Jul 2019 09:16:51 +0000 (18:16 +0900)]
Fix format check warning message by symbolic link (#5777)
Fix to ignore symbolic link permission check
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Jul 2019 08:34:24 +0000 (17:34 +0900)]
Fix boost source download bug (#5763)
Fix using boost source download flag DOWNLOAD_BOOST bug
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 08:07:13 +0000 (17:07 +0900)]
[moco-tf] Add TFAvgPool2D IR and related (#5769)
This will add TFAvgPool2D IR and related minumum codes for build
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 05:00:44 +0000 (14:00 +0900)]
[locomotiv] Session constructable with range (#5740)
* [locomotiv] Session constructable with range
This commit introduces Session constructor with iterator range and
related test.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review fix: to use std-style convention
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 04:21:30 +0000 (13:21 +0900)]
[mocotest-tf] enable TF_SMALL_NET_0003 test (#5766)
This will enable TF_SMALL_NET_0003 test that has Conv2D + FusedBatchNorm
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 04:21:12 +0000 (13:21 +0900)]
[mocotest-tf] Enable tests that pass (#5767)
This will enable tests that pass, copied from tf2tflite test items
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Jul 2019 04:09:49 +0000 (13:09 +0900)]
Relocate scrips/standalone (#5765)
Move scripts/standalone to infra/scripts
Make symbolic link scripts/standalone to infra/script for workaround CI infra
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 03:45:06 +0000 (12:45 +0900)]
[moco-tf] Enable transforms for FusedBatchNorm node (#5762)
This will enable to resolve FusedBatchNorm node to be fused to preceding nodes
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 03:26:24 +0000 (12:26 +0900)]
Move doc for 'test.info' into tfinfo dir (#5745)
* Move doc for 'test.info' into tfinfo dir
This commit moves documentation on 'test.info' from
'mocotest-tf' into 'tfinfo' directory, as it seems more suitable.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Fix title and directory
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 03:26:10 +0000 (12:26 +0900)]
Introduce a func that initializes inputs by default (#5743)
This commit introduces defaultInit func that initializes inputs by default.
- Introduce defaultInit func
- Remove registering initializer that initializes inputs from ConstantInitializer
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
DR1 project requirements document (#5633)
* DR1 project requirements document
Added DR1 project requrements document
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
* remove unnecessary data
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
* rethink component list
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
* - Update Interpreter description
- Add Heterogeneous execution requirements
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
* add requirement for optimizer
* review fixes
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
* - Add custom-op related requirement
- Set optimization requirements
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
* revert mistake change
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 03:08:19 +0000 (12:08 +0900)]
Update README.md (#5734)
* Update README.md
- Update notice following repo integration.
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
* Add links.
- Recovering accidentally deleted link information
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 23 Jul 2019 01:39:33 +0000 (10:39 +0900)]
[loco] Implement Dialect-agnostic Type Inference Framework (#5732)
This commit introduces basic infrastructure for dialect-agnostic type
inference, and implements its core framework.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 00:57:04 +0000 (09:57 +0900)]
[nnkit] Fix nnkit project README (#5746)
This commit fixes nnkit README to use 'compiler' instead of 'contrib'.
It also corrects changed library directions in examples.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 00:56:44 +0000 (09:56 +0900)]
[locomotiv] Use signed variable as intended (#5741)
Previously execution for Conv2D used unsigned variable for one
intended as signed one. This commit now fix this to use unsigned
variable correctly.
Unused headers also excluded.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 23 Jul 2019 00:53:40 +0000 (09:53 +0900)]
Move Dockerfile for nncc into infra directory (#5744)
Previously nncc Dockerfile was placed in home directory. This commit
moves the Dockerfile into 'infra/nncc' directory. Related documentation
also edited.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 00:27:36 +0000 (09:27 +0900)]
[res/TensorFlowTests] test case network for constant folding (#5739)
This commit adds a network test case for constant folding.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 23 Jul 2019 00:27:12 +0000 (09:27 +0900)]
[moco/tf] Make import as TF dialect (#5729)
This will switch Knobs to import as TF dialects for BiasAdd, Const and Conv2D and turn on Canonicalize for these by default
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 22 Jul 2019 09:26:00 +0000 (18:26 +0900)]
[locomotiv] Clarify layout rule as documentation (#5742)
This commit updates documentation to state its rule on internal data
layout representation.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 22 Jul 2019 05:06:03 +0000 (14:06 +0900)]
Fix format error in ShapeInference (#5733)
Fix format error in runtime ShapeInference
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 [Mon, 22 Jul 2019 04:11:49 +0000 (07:11 +0300)]
[shape_inference] Implemented shape inference for concat node (#5669)
* [shape_inference] Implemented shape inference for concat node
Implemented shape inference for concat node
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
* Fixed formatting
* Use ConcatNode::Param to get concat axis
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
[neurun] Schedule backends shuffled order for profiler (#5700)
* [neurun] Schedule backends shuffled order for profiler
Schedule assigning backends in shuffled order for profiler
to measure data transfer time for as many tensors as possible
Also did some refactoring
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Fix cpu scheduling, than speed up by 10%
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
* Fix typo "bacnend"
Signed-off-by: Dilshodzhon Poshshoev <d.poshshoev@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 22 Jul 2019 02:31:01 +0000 (11:31 +0900)]
Remove _gen_map_deprecated from BackendResolver (#5722)
As every use of `_gen_map_deprecated` is now removed we can remove it.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
Hyeongseok Oh [Mon, 22 Jul 2019 01:03:34 +0000 (10:03 +0900)]
Merge nncc repo branch 'master' into master
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Sun, 21 Jul 2019 23:43:18 +0000 (08:43 +0900)]
Update .clang-format (#4361)
This commit updates .clang-format based on internal policy.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 09:00:46 +0000 (18:00 +0900)]
Remove legacy ConstantInitializer (#5718)
This commit removes legacy ConstantInitializer.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 08:20:18 +0000 (17:20 +0900)]
Support Mean op for acl_neon backend (#5707)
This commit Supports Mean op for acl_neon backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
이한종/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)/Staff Engineer/삼성전자 [Fri, 19 Jul 2019 04:22:30 +0000 (13:22 +0900)]
[moco/tf] Record Graph-Level Input/Output Shape (#4357)
moco.tf frontend now records graph-level input/output shape.
Signed-off-by: Jonghyun Park <jh1302.park@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:28:25 +0000 (12:28 +0900)]
Relocate CMakeLists.txt (#4358)
* Relocate CMakeLists.txt
Now, CMakeLists.txt in in infra/nncc directory.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix nncc_find_resource
오형석/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
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 19 Jul 2019 01:50:35 +0000 (10:50 +0900)]
[locomotiv] Session for subgraph (#4348)
* [locomotiv] Session for subgraph
This commit supports locomotiv Session to run inference on subgraph
only, by setting user defined custom outputs. Compatibility to existing
'full graph' Session is preserved.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review fix: get output by node
* Review fix: efficient ctor call
* Add warning