[neurun] Do not use Graph::release* methods in Linear (#8957)
Moving subgraphs, lowerinfo, etc. from Graph to Linear and then to Executors makes it difficult to understand who is the owner of these entities. It is enough to pass `Graph` to `Linear` by reference.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 18 Nov 2019 09:37:00 +0000 (18:37 +0900)]
[moco-svc] Shape and Type inference for FakeQuant (#9004)
This will add Shape and Type inference for FakeQuantWithMinMaxVars node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 18 Nov 2019 09:08:43 +0000 (18:08 +0900)]
[logo] Use logo-core (#9007)
This will update to use logo-core and remove files that have migrated
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 18 Nov 2019 09:08:15 +0000 (18:08 +0900)]
[moco-pass] Use logo-core instead of logo (#9006)
This will update moco-pass to use logo-core as it only uses Pass and Phase class
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Fix flatbuffers build with gcc versions >= 8.0 (#8954)
gcc 8.0+ adds `class-memaccess` diagnostic, making flatbuffers build fail when Werror is enabled
This disables class-memaccess diagnostic for gcc versions greater than 8.0
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 18 Nov 2019 07:56:08 +0000 (16:56 +0900)]
[logo-core] logo-core from logo (#8991)
* [logo-core] logo-core from loco
This will introduce logo-core copied from logo with Pass and Phase class
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix typo
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 18 Nov 2019 07:49:48 +0000 (16:49 +0900)]
[doc] Update howto xu4 tizen (#8981)
- Slow down fan speed using cpu governor
- Mount writable root file stsyem
- Install OpenCL
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 07:37:13 +0000 (16:37 +0900)]
[neurun] Move OpCode hash to OpCode file (#9001)
Since OpCode hash can be used in different modules, move it and put it
as `std::hash` specialization so we do not need to pass it to containers
manually.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 18 Nov 2019 07:06:48 +0000 (16:06 +0900)]
[nnpkg-run] templatize randomData and introduce unnamed namespace (#9000)
It is a preparation step to support qint8 input/output.
It templatize randomData and introduce unnamed namespace.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 06:58:42 +0000 (15:58 +0900)]
[exo] Type & Shape inference of Instance Norm (#8993)
This commit introduces type and shape inference for Instance Norm IR.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 06:53:21 +0000 (15:53 +0900)]
[logo] Fix typo on README (#8997)
This commit fixes typo on README
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 06:52:55 +0000 (15:52 +0900)]
[exo] Add Circle node summary builder for logging (#8994)
This commit adds Circle node summary builder to log Circle nodes
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 06:47:42 +0000 (15:47 +0900)]
[neurun] Extract out Observee from Executor (#8970)
* [neurun] Extract out Observee from Executor
- Remove observee(subject) methods from Executor
- Introduce `ExecutionObservee` class
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Remove DataflowExecutor::addObserver
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 18 Nov 2019 06:09:19 +0000 (15:09 +0900)]
[neurun/interp] Use model opcode enum (#8999)
Remove interpreter internal opcode enum and use model opcode enum neurun::model::OpCode
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 18 Nov 2019 05:57:36 +0000 (14:57 +0900)]
[nnpackage-run] Backend resolve for operation type (#8919)
Can resolve backend for each operation type using environment variable
- Support conv, depthwise conv, transpose conv, mean, average pool, max pool, instance norm, add
- Update api operation map for instance norm and add operation backend set
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 05:36:31 +0000 (14:36 +0900)]
Revert "[neurun] Fix for const model ouput (#8799)" (#8998)
This reverts commit
0bc930bd7d816b48c148c6043a6a8abb08badf51.
Fix push builder failure.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 04:44:33 +0000 (13:44 +0900)]
[exo] Remove specialized visitor fallback (#8980)
This commit removes specialized visitor fallback for type and shape
inference for TFL and Circle dialects. These visitors now use default
fallback defined by their bases.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 04:21:38 +0000 (13:21 +0900)]
[neurun] Introduce OpCode enum type (#8977)
Introduce OpCode enum type for operations. Each operation has its unique
OpCode value.
Resolve #8858
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 04:20:15 +0000 (13:20 +0900)]
[exo] Extract out set_new_shape() for TFLReshape (#8950)
This commit extracts out `set_new_shape()`, a helper function to set
both of TFLReshape's new shape information.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 03:55:03 +0000 (12:55 +0900)]
[neurun] Fix for const model ouput (#8799)
* [neurun] Fix for const model ouput
Handle properly when a model has const model outputs.
This makes it not crash however the results are still incorrect since
Const values are not initialized yet.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Do not force NHWC for unused const tensors
* Add more comments
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Remove fix in Source and Sink
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 18 Nov 2019 02:17:52 +0000 (11:17 +0900)]
[neurun] Remove useless dependency in Operation (#8971)
Operation used to own a `LowerInfo` class in it, but it is no longer
needed.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Sun, 17 Nov 2019 23:46:43 +0000 (08:46 +0900)]
[exo] Selective TFLNode summary impl (#8968)
With this commit, developer can implement TFLNode summary selectively
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
[neurun] Remove unnecessary map in base_loader (#8955)
Set Operand data right when creating it from Tensor, `_tensor_to_operand` map is not needed.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[neurun] Remove unnecessary maps in base_loader (#8953)
Maps `_op_code_to_builtin_op` and `_opcode_index_to_custom_opcode` aren't necessary -- all the data they provide can be got from `_model` private variable.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 09:23:21 +0000 (18:23 +0900)]
[exo] Rename opname to tfl_opname explicitly (#8964)
This commit renames opname to tfl_opname explicitly.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 08:22:17 +0000 (17:22 +0900)]
[exo] Export CircleInstanceNorm (#8961)
This commit implements export stage for CircleInstanceNorm
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 08:22:09 +0000 (17:22 +0900)]
[neurun] Fix indentation of DataflowExecutor (#8966)
This commit fixes indentation of DataflowExecutor
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 07:57:00 +0000 (16:57 +0900)]
[exo] Good to remove TODO comment (#8965)
Removing condition for TODO comment satisfied. Let's remove this.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 15 Nov 2019 07:44:41 +0000 (16:44 +0900)]
[dredd-rule-lib] functions to check error conditions (#8942)
* [dredd-rule-lib] functions to check error conditions
This removes duplicated if statements and adds some functions for error conditions.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* using vars instead of and
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 03:26:14 +0000 (12:26 +0900)]
[exo] Rename FormattedGraph file name (#8951)
This commit renames following file name:
- TFLFormattedGraph.* > ExoFormattedGraph.*
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 03:23:31 +0000 (12:23 +0900)]
[exo] Type and Shape inference for Circle dialect (#8949)
This commit introduces type and shape inference service for Circle
dialect
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 01:53:04 +0000 (10:53 +0900)]
[exo] Visit CircleNode to export operation (#8948)
* [exo] Visit CircleNode to export operation
This commit registers Circle dialect visitor to export operation
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Remove unused arg
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 15 Nov 2019 01:48:28 +0000 (10:48 +0900)]
Fix a bug of tconv layer of ncnn (#8947)
This commit fixes a bug of tconv layer of ncnn.
- Add initializing output buffer to zero
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 14 Nov 2019 23:45:04 +0000 (08:45 +0900)]
[exo] Remove unused stdex header (#8952)
This commit removes unused stdex header for exo conversions.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
[mir-onnx-importer] Fix paddings during import (#8893)
Fix paddings if they are too big: remove redundant from right padding
Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
[nnc/interpreter] Quantized kernels for supporting InceptionV4 (#8669)
* Supported quantized kernels for operations: Concat, FC, MaxPool,
Softmax
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[mir-tflite-importer] Support fused bias on FullyConnected (#8670)
* Supported creation FC with fused bias for quantized models
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[nnc] make interpreter faster in debug (#8931)
Rewrite FC layer for 2d case using no mir datatypes
This makes FC layer 20-40 times faster in debug mode
Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 14 Nov 2019 10:06:31 +0000 (19:06 +0900)]
[runtime/gbs] Fix coverage build (#8940)
- Update build type setting for test (coverage) build
- Move optimization level setting to ApplyCompileFlags.cmake
- Optimization level and debug setting in target_compile_option is not working
- COVERAGE_BUILD is not used any more
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 14 Nov 2019 09:06:09 +0000 (18:06 +0900)]
[exo] Circle IR for Instance norm (#8878)
* [exo] Circle IR for Instance norm
This commit introduces CircleInstanceNorm IR
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Note on input
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 09:04:44 +0000 (18:04 +0900)]
[moco] Introduce find_node_byname (#8938)
This will intrdocue moco GraphHelper with find_node_byname() that quries node by name.
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 07:09:21 +0000 (16:09 +0900)]
[dredd] applying error handling code to runner.sh (#8935)
* [dredd] applying error handling code to runner.sh
This applies error handling code into runner.sh that was applied in #8888, #8910
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* change comment
Refactory benchmark scripts to unify (#8838)
1. Most of the script weren't up-to-date
2. Most of the steps are the same, so move them as a separate functions to
common.sh
Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
Disable ABI compatibility warning (#8625)
Disable annoying ABI compatibility warnings.
There are lots of such warnings when building the runtime (with GCC >= 7.1).
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 06:54:01 +0000 (15:54 +0900)]
Compiler: remove ENABLE_CONTRIB_BUILD cmake option (#8941)
This will remove nncc ENABLE_CONTRIB_BUILD cmake option that is not used anymore
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
[neurun] Eliminate OperandIndex in Split::Param (#8917)
Make `axis` and `num_splits` static attributes of the operation.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 06:36:43 +0000 (15:36 +0900)]
[nnpkg_tools] remove debug print and unnecessary line (#8937)
- fuse_instance_norm.js
: remove all console.debug statement to suppress output
- gen_golden.py
: remove dead code
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
[neurun] Eliminate OperandIndex in StridedSlice::Param (#8916)
* Make `starts`, `ends` and `strides` inputs to the operation.
* Make `begin_axis_mask`, `end_axis_mask`, `shrink_axis_mask` static attributes of the operation.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[neurun] Eliminate OperandIndex in TopKV2::Param (#8930)
Make `k` static attribute of the operation.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 05:27:59 +0000 (14:27 +0900)]
[pb2nnpkg] introduce pb_select_graph (#8936)
pb2nnpkg uses python script to select subgraph.
It does not require you to build tensorflow any longer.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 03:22:02 +0000 (12:22 +0900)]
[moco] Set name for TFNode when importing (#8933)
This will set name for TFNode when importing from TensorFlow NodeDef
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 14 Nov 2019 02:07:24 +0000 (11:07 +0900)]
[nnpkg-tools] introduce pb2nnpkg (#8920)
It introduces pb2nnpkg, which gets pb file, input name, output name.
Then, generates pb of selected subgraph, and nnpackage with golden data.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 14 Nov 2019 00:59:28 +0000 (09:59 +0900)]
[neurun] Inline one-liner of ProfileObserver (#8914)
This commit inlines one-liner function which is only used once for
simplicity.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 13 Nov 2019 22:03:21 +0000 (07:03 +0900)]
[moco] Add TFNode name attribute (#8927)
This will introduce name attribute for TFNode so that we can store and fetch string name of each nodes from TensorFlow NodeDef
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
[mir] FullyConnected ctor with fused bias (#8668)
* Added FC ctor with fused bias
* Fixed FC copying
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 13 Nov 2019 06:20:26 +0000 (15:20 +0900)]
[moco] Test for TFNode name attribute (#8922)
This will introduce a test for disabled TFNode name attribute and query TFNode by name
- disabled part should work after related codes land
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 13 Nov 2019 05:02:00 +0000 (14:02 +0900)]
[tf2tflite_dredd_pbtxt_test] error handling using trap (#8910)
* [tf2tflite_dredd_pbtxt_test] error handling using trap
This adds error handling using trap command.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* comment
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 13 Nov 2019 04:30:22 +0000 (13:30 +0900)]
[runtime/gbs] Revise nnfw.spec for tizen runtime rpm build (#8908)
- Build twice
- Build for runtime (disable environment variable setting)
- Build for test (enable environment variable setting)
- Enable extra option
- Use command instead of makefile
- Change file copy to install for library install
- Set required packages for package install
- Set own directory
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
[mir2loco] Introduce Transpose op transformer (#8871)
* Implemented TransposeOp transformer and test for it
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 12 Nov 2019 09:55:01 +0000 (18:55 +0900)]
[neurun] Verbose exception message for Backends (#8901)
ShapeFixer exception message shows that it is from which module and its
operation name.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 12 Nov 2019 05:29:18 +0000 (14:29 +0900)]
[runtime/pkg] Create runtime package in Makefile (#8856)
Using makefile, create runtime package
Ex. For ubuntu, armv7l
"CROSS_BUILD=1 TARGET_ARCH=armv7l BUILD_TYPE=release make create_tar"
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Fix warnings generated for Index class (#8626)
* Fix the type of the parameter of the copy constructor of the `Index` class. This silences -Wdeprecated-copy GCC 8.1+ warnings.
* Make the copy constructor and copy assignment operator defaulted. This silences clang-tidy warnings suggesting to pass objects of `Index` class by const reference.
* Fix description of inequality operators.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 12 Nov 2019 05:06:25 +0000 (14:06 +0900)]
[nnfwapi] Verbose error message on model load (#8890)
Print message of thrown `std::exception` objects.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 12 Nov 2019 03:49:31 +0000 (12:49 +0900)]
[tf2tflite-dredd-pbtxt-test] Error handling for runner.sh (#8888)
This adds error handling for runner.sh.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 12 Nov 2019 03:47:26 +0000 (12:47 +0900)]
[exo] Revising convert(..) method using DomainConverter (#8895)
This revised convert(..) methond using DomainConverter.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 12 Nov 2019 01:35:29 +0000 (10:35 +0900)]
[neurun] Remove depedency on nnapi-header (#8889)
Remove core lib's depedency on nnapi-header which is no longer needed.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
[onnx2circle] Initial version of onnx2circle (#8872)
Add utility to convert onnx networks to circle
Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
[logo] Fix SimplifyDomainConversionPass (#8874)
- Add test for filter elimination optimization
- Fix assert in filter elimination optimization
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 07:15:18 +0000 (16:15 +0900)]
[tf2circle-dredd-pb-test] Introducing tf2circle-dredd-pb-test (#8883)
* [tf2circle-dredd-pb-test] Introducing tf2circle-dredd-pb-test
tf2circle-dredd-pb-test is introduced, which is a test for circle files generated from pb files in ./contrib dir.
Note that files in the PR is copied files from tf2tflite-dredd-pb-test, after replacing string "tflite" and "tfl" to "circle".
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* remove nncc_find_resource(TensorFlowTests)
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 06:21:27 +0000 (15:21 +0900)]
[tf2tflite-dredd-pb-test] remove nncc_find_resource(TensorFlowTests) (#8884)
nncc_find_resource(TensorFlowTests) was removed from CMakeLists.txt.
(This resource is not required by tf2tflite-dredd-pb-test)
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 06:20:29 +0000 (15:20 +0900)]
[circle-inspect] Adding "--conv2d_weight" support (#8879)
* [circle-inspect] Adding "--conv2d_weight" support
This adds "--conv2d_weight" support for circle-inspect. Modified code was from _tfl_inspect_.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/circle-inspect/driver/Driver.cpp
Thanks!
Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 06:11:00 +0000 (15:11 +0900)]
[tf2circle-dredd-pbtxt-test] Introducing tf2circle-dredd-pbtxt-test (#8882)
* [tf2circle-dredd-pbtxt-test] Introducing tf2circle-dredd-pbtxt-test
tf2circle-dredd-pbtxt-test is introduced, which is rule base test for circle files generated from pbtxt files under `res/TensorFlowTests/`.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/tf2circle-dredd-pbtxt-test/runner.sh
thanks, bot.
Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 11 Nov 2019 06:05:25 +0000 (15:05 +0900)]
Add TODO comment into IConstantInitializer. (#8880)
This commit adds TODO comment checking if tensor has been allocated into IConstasntInitializer.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 11 Nov 2019 05:45:05 +0000 (14:45 +0900)]
[runtime] Remove default LD_LIBRARY_PATH (#8876)
Remove LD_LIBRARY_PATH setting except pacl test because rpath is set on install
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 11 Nov 2019 04:29:07 +0000 (13:29 +0900)]
[exo] FusedActFunc as Circle NodeMixin (#8877)
This commit introduces Circle NodeMixin, and as its first use case,
FusedActFunc
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 11 Nov 2019 03:58:38 +0000 (12:58 +0900)]
[nnfw/cmd] Revise workspace setting in command (#8844)
- Use absolute path as defulat: workspace, build path, install path
- Move common build path configuration into build.configuration
- Use build and install command in makefile
- Simplify to use absolute path in Makefile
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 11 Nov 2019 03:55:15 +0000 (12:55 +0900)]
[exo] Delete removable headers for NodeImpl (#8818)
This commit deletes removable headers for TFL dialect and Circle dialect
NodeImpl
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 11 Nov 2019 03:47:19 +0000 (12:47 +0900)]
[dredd-lib-rule] Adding rule function for 'verify' (#8868)
This adds rule function for 'verify'.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 10 Nov 2019 23:27:36 +0000 (08:27 +0900)]
[tf2tflite-dredd-pb-test] Modified just like tf2tflite-dredd-pb-test (#8869)
* [tf2tflite-dredd-pb-test] Modified just like tf2tflite-dredd-pb-test
tf2tflite-dredd-pb-test was modified just like tf2tflite-dredd-pb-test.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/tf2tflite-dredd-pb-test/runner.sh
Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
[mir] Introduce new HardSwish operation (#8790)
* Added hard swish new operation to mir
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[docs] Clarify test cases in STD documentation (#8848)
Reworded several test cases items and test cases to make clear how to implement them
Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 08:43:20 +0000 (17:43 +0900)]
[dredd-rule-lib] Using env var name independent of tfl or circle (#8867)
Env var names were changed to be independent of tfl or circle.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 07:31:07 +0000 (16:31 +0900)]
[tf2tflite-dredd-pbtxt] adding env vars independent of tfl or circle (#8864)
* [tf2tflite-dredd-pbtxt] adding env vars that will be used by rule-lib.sh
This adds env vars taht will be used by rule-lib.sh.
Currently var naming in rule-lib.sh in dredd-rule-lib has tfl dependency, so it cannot be used with circle.
This new name is to remove the dependency.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Update compiler/tf2tflite-dredd-pbtxt-test/runner.sh
Co-Authored-By: hyunsik-yoon <hyunsik.yoon@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 06:42:52 +0000 (15:42 +0900)]
[neurun] Rename operation name getter (#8857)
Rename operation name getter to `name` from `getName`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 06:25:03 +0000 (15:25 +0900)]
[neurun] Support ReduceSum from BaseLoader (#8852)
Support ReduceSum operation from frontend BaseLoader. SUM operation in
TF Lite equals to ReduceSum in neurun.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 06:16:07 +0000 (15:16 +0900)]
[dredd-rule-lib] Cleaning the output of rule-lib.sh (#8862)
This cleans the output of rule-lib.sh.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 06:07:54 +0000 (15:07 +0900)]
[tf2tflite-dredd-pbtxt-test] Adding tfl-verify (#8861)
This adds tfl-verify support into files related to cmake.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 05:32:33 +0000 (14:32 +0900)]
[tf2tflite-dredd-pbtxt-test] Using rule-lib.sh in dredd-rule-lib (#8860)
tf2tflite-dredd-pbtxt-test now uses rule-lib.sh in dredd-rule-lib.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 04:29:33 +0000 (13:29 +0900)]
[nnfw] Rename singleton object getter (#8853)
Rename singleton objects' getter metohd `instance` to `get`.
(Since it is shorter)
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 04:28:22 +0000 (13:28 +0900)]
[circle-inspect] Add verify model file (#8849)
This will add model verify step before inspection to prevent segmentation fault with invalid files
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 04:14:07 +0000 (13:14 +0900)]
[exo-circle] Add missing fusedActivationFunction (#8845)
This commit will add missing fusedActivationFunction in circle exporter
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 04:12:31 +0000 (13:12 +0900)]
[dredd-rule-lib] Introducing dredd-rule-lib (#8833)
* [dredd-rule-lib] Introducing dredd-rule-lib
This introduces dredd-rule-lib, which defines rule-lib.sh used by tf2tflite/circle-dredd-pb/pbtxt-test.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* renaming target
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 03:13:08 +0000 (12:13 +0900)]
[exo] Adding InputHandler for converters that perform loco Domain conversion (#8842)
This adds InputHandler for Relu/Relu6/EltwiseSqrtConverter, which requires loco Domain conversion when input is Feature domain.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 03:11:24 +0000 (12:11 +0900)]
Remove `Node` from tests and doc (#8854)
This commit removes ``Node` from tests and doc.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 8 Nov 2019 03:07:20 +0000 (12:07 +0900)]
[ncnn] Set default backend layout to NCHW (#8851)
Current ncnn backend allow NCHW backend only on many operations, so set default backend layout to NCHW
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 01:54:34 +0000 (10:54 +0900)]
Update document (#8803)
- Use copy instead of symbolic link for convenience in modifying the
Makefile
- Fix Build command. Existing last `make install` causes a new x86_64
build.
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 01:36:36 +0000 (10:36 +0900)]
[neurun] Remove IsNnapi field from Operations.lst (#8835)
Remove IsNnapi field from `Operations.lst` since it is not helpful.
Related Issue: #8751
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 01:17:23 +0000 (10:17 +0900)]
[neurun] Support BatchToSpaceND from BaseLoader (#8837)
Support BatchToSpaceND operation from frontend BaseLoader.
Currently we do not support CROP input. So it throws an exception when
the value of crop is other than {{0, 0}, {0, 0}}.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 8 Nov 2019 01:16:19 +0000 (10:16 +0900)]
[tflite2circle] Introduce fuse_instance_norm (#8452)
implemented in javascript (nodejs)
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 8 Nov 2019 01:11:03 +0000 (10:11 +0900)]
Fix an error that occurs in a tensor with rank 0 (#8847)
This commit fixes an error that occurs in a tensor with rank 0.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>