박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 03:13:41 +0000 (12:13 +0900)]
[moco-svc] Refine error with oops (#9154)
This will refine error message with oops
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 02:00:41 +0000 (11:00 +0900)]
[exo] Alternative helper for commutative args (#9140)
* [exo] Alternative helper for commutative args
This commit introduces alternative helper to extract and set commutative
argument of the node.
Current:
`bool ok = commutative_args_of(node).is(arg1, arg2);`
Suggested alternative:
`bool ok = set(&arg1, &arg2).with_commutative_args_of(node);`
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Fill!
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 25 Nov 2019 01:51:26 +0000 (10:51 +0900)]
Apply copying for permuteInit of ConstantInitializer (#9147)
This commit applies copying for permuteInit of ConstantInitializer.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 25 Nov 2019 01:43:16 +0000 (10:43 +0900)]
[neurun/api] Comment for nnfw_session (#9137)
Add more comment for nnfw_session
It contains brief how to use nnfw_session for inference
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 01:41:13 +0000 (10:41 +0900)]
[moco-pass] Refine error with oops (#9153)
This will refine error message using oops
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 25 Nov 2019 01:34:28 +0000 (10:34 +0900)]
[moco-import] Refine error message using oops (#9151)
* [moco-import] Refine error message using oops
This will refine error handling and message using oops for GraphBuilderContext and others
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use GraphDef
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 11:09:15 +0000 (20:09 +0900)]
[moco] Update requires with oops (#9155)
This will add oops target to moco requires.cmake
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 10:39:19 +0000 (19:39 +0900)]
Introduce TensorRegister into BackendContext (#9148)
This commit introduces TensorRegister into BackendContext.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 10:38:38 +0000 (19:38 +0900)]
[runtime/CI] Use BACKENDS envvar to select backend (#9143)
To select backend, use BACKENDS Instead of OP_BACKENDS_ALLOPS
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 09:43:23 +0000 (18:43 +0900)]
[neurun] Introduce ChromeTracingObserver (#9113)
Introduce Chrome Tracing Observer and bind with DataflowExecutor.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 08:31:20 +0000 (17:31 +0900)]
[moco-import] Fix AvgPool for error handling (#9144)
This will change error handling for AvgPool import to throw for invalid input model instead of using assert, which will do nothing in Release build. Error checking in build() method is also moved to validate() method as the responsibility is in validate().
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 08:16:33 +0000 (17:16 +0900)]
[enco] Resolve warning in release configuration (#9145)
This commit resolve all the compiler warnings in enco codebase.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 08:12:41 +0000 (17:12 +0900)]
[exo] 1st try to replace throw to oops (#9142)
This is the start of replacing throw to oops message for exo.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:46:56 +0000 (16:46 +0900)]
[coco] Fix Build Warnings in Release Configuration (#9138)
This commit resolves build warnings in release configuration.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 07:45:20 +0000 (16:45 +0900)]
[exo] Fuse Instance Norm logic (#9103)
This commit implements logic for Instance Norm fusion.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:33:28 +0000 (16:33 +0900)]
[tf2circle-ui-check] Print tf2circle's exitcode (#9128)
The current implementation shows the exitcode of the last "echo"
command, and thus it always print 0.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:33:07 +0000 (16:33 +0900)]
Introduce tf2circle internal error handler (#9129)
This commit implements the basic infrastructure for handling internal
errors.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 07:24:23 +0000 (16:24 +0900)]
Move logging of FillOperandData to the time filling data (#9139)
This commit moves logging of FillOperandData to the time filling data.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 07:13:20 +0000 (16:13 +0900)]
[neurun] Introduce an API to set which backends to use (#9099)
* [neurun] Introduce an API to set which backends to use
Define `nnfw_set_preferred_backends` API to set `BACKENDS` configuration variable
- Only the backends specified at `BACKENDS` are loaded on prepare phase
Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
* Rename nnfw_set_default_backend to nnfw_set_available_backends
nnfw_set_available_backends set BACKENDS
[docs] Update System Test Document (STD) (#9079)
Added output of NN Compiler and NN Runtime system tests
Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
[exo] Supported export Fully Connected node (#9017)
* Created TFLFullyConnected node on exo dialect
* Added TypeInference and ShapeInference for this node
* Created MatMulConverter
* Added some helpers with MatrixEncode and MatrixDecode
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 06:48:51 +0000 (15:48 +0900)]
[neurun/benchmark] Use linear scheduler for operator kernel test (#9133)
Operator kernel test don't need to check each scheduler's performance, so use linear only
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 06:23:51 +0000 (15:23 +0900)]
Introduce pepper-assert (#9124)
This commit introduces "pepper-assert" library. This library will
provides various helpers that makes it easy to manage asserts in
the code base.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 05:05:54 +0000 (14:05 +0900)]
[gen_golden] replace deprecated tf.ConfigProto (#9131)
tf.Config.Proto is deprecated. I replaced it with tf.compat.v1.Proto.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 03:09:22 +0000 (12:09 +0900)]
[nncc] Skeleton of README.md for nncc in nnas SDK 1.0 (#9034)
* [nncc] Skeleton of README.md for SDK 1.0
This is a skeleton README document for SDK 1.0.
Note that main readers are developers who want to compile Tensorflow models.
Please, write any part you want to write after making an issue.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* adding contents about nnpackage
* explaining nnas sdk
* NNCC to nncc
* numbering on section
* moving license into 1. nnas SDK 1.0
* added semantic versioning. Changed version 1.0 to 1.0.0
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 02:55:29 +0000 (11:55 +0900)]
[gen_golden] suppress warnings (#9097)
It suppresses two kinds of warnings:
- Future warnings
- TensorFlow Information
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 22 Nov 2019 02:55:03 +0000 (11:55 +0900)]
[gen_golden] Dynamically allocate GPU memory for TensorFlow (#9125)
Without this PR, running gen_golden.py on nvidia-docker produces errors
Setting one gpu option for session
- `config.gpu_options.allow_growth = True`
Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 02:26:07 +0000 (11:26 +0900)]
[moco-tf] Fix typo scalar (#9123)
This will fix scalar type in ConcatV2Canonicalizer
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 01:07:37 +0000 (10:07 +0900)]
[neurun] Do not use name to check Operation type (#9110)
Do not use name to check Operation type, use OpCode instead
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 01:05:22 +0000 (10:05 +0900)]
[tf2circle-ui-check] fix typos (#9111)
Fix types from "circel" to "circle".
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 01:00:54 +0000 (10:00 +0900)]
Introduce TensorRegister registering tensor info of cpu (#9108)
This comit introduces TensorRegister registering tensor info of cpu.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 01:00:31 +0000 (10:00 +0900)]
Introduce TensorRegister registering tensor info of srcn (#9107)
This commit introduces TensorRegister registering tensor info of srcn.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 22 Nov 2019 01:00:16 +0000 (10:00 +0900)]
[res/TensorFlowTests] Wrong models: UI_0002, UI_0003 (#9109)
This adds two wrong models:
- UI_0002: Cannot find node whose name is input node name of Conv2D
- UI_0003: two nodes have the same name
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Fri, 22 Nov 2019 00:59:37 +0000 (09:59 +0900)]
Introduce AclTensorRegister registering tensor info of acl (#9106)
This commit introduces Introduce AclTensorRegister registering tensor info of acl.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
[docs] Added Unit Test Report (#9080)
Added UTR for DR2
Signed-off-by: Alexander Efimov <a.efimov@samsung.com>
[nnc] Supported HardSwish operation on Interpreter (#9118)
* Implemented realization of HardSwishOp on iterpreter
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[mir-tflite-importer] Supported HardSwish operation on tflite frontend (#9119)
* Implemented HardSwishOp converter on tflite frontend
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
[nnc] Fix compiler warnings (#9117)
Fix compiler warnings breaking release build.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[mir] Fix compiler warnings (#9115)
Fix a couple compiler warnings breaking release build.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
[adtidas] Fix compiler warnings (#9116)
Fix compiler warnings breaking release build.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 11:04:01 +0000 (20:04 +0900)]
[compiler] Introducing oops (user exception, internal exception) (#9063)
* [compiler] Introducing oops
_oops_ is a project for user exception and internal exception.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* Stone -> InfinityStones
* internalExn takes FILE, LINE, then msg
* separator typo
* preparing 4 variables
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 10:31:28 +0000 (19:31 +0900)]
[neurun] Introduce SUBG_MAX_NODE feature (#9085)
* [neurun] Introduce SUBG_MAX_NODE feature
Introduce SUBG_MAX_NODE feature on lower phase
- SUBG_MAX_NODE=n : a subg has a maximum of n node
- SUBG_MAX_NODE=0(default) : a subg has a node or nodes without limit
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* cast by static_cast
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 10:09:34 +0000 (19:09 +0900)]
[exo] Clarify commutative_args_of(...).is(...) intension (#9092)
* [exo] Clarify commutative_args_of(...).is(...) intension
There has been confusion on meaning and usage of helper
`commutative_args_of(...).is(...)`. This commit tries to clarify them.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Fix typo
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 09:11:18 +0000 (18:11 +0900)]
Introduce ITensorRegister registering tensor info (#9089)
This commit instroduces ITensorRegister registering tensor info.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 08:58:32 +0000 (17:58 +0900)]
[dredd-rule-lib] Enhancing rule-lib.sh (#9102)
This enhances rule-lib.sh: 1) error check with function (for clean code) 2) replacing `grep .. | wc -l` with `grep -c` (-c is for counting), 3) processing grep error when exit code is not 0
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:37:39 +0000 (17:37 +0900)]
[neurun] Refactor too big Graph::lower() (#9087)
Separate Graph::lower() into multiple methods such as makeSubgraphs and
manipulateLowerInfo
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:18:03 +0000 (17:18 +0900)]
[exo] Refactor to is_1D_with_dummy_dim() (#9096)
This commit refactors:
`is_1D_with_dummy_rank()` to `is_1D_with_dummy_dim()`
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:08:09 +0000 (17:08 +0900)]
[exo] CommutativeArgsGetter::is() implementation (#9093)
This commit introduces implementation of CommutativeArgsGetter::is()
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 08:07:49 +0000 (17:07 +0900)]
[exo] is_instance_mean() implementation (#9095)
This commit implements `is_instance_mean()` helper
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 08:00:05 +0000 (17:00 +0900)]
[res/TensorFlowTests] UI_000: wrong network (kernel is missing in Conv2D) (#9091)
This is a wrong network (kernel is missing in Conv2D) to see error message of the compiler.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 07:27:21 +0000 (16:27 +0900)]
[exo] is_1D_with_dummy_rank() implementation (#9094)
This commit implements `is_1D_with_dummy_rank()` helper
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 21 Nov 2019 07:05:22 +0000 (16:05 +0900)]
Introduce tf2circle-ui-check (#9083)
tf2circle-ui-check makes it easy to check the console output of
tf2circle for each testcases.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 06:58:58 +0000 (15:58 +0900)]
Fix wrong calculating strides of srcn backend (#9073)
This commit fixeswrong calculating strides of srcn backend.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
[neurun] Simplify code using Operand::asVector (#9038)
Simplify code using newly introduced `Operand::asVector`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 06:09:37 +0000 (15:09 +0900)]
[exo] Instance Norm pattern match logic (#9054)
This commit implements Instance Norm pattern match logic. Used helper
function's detail not implemented yet.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 05:11:12 +0000 (14:11 +0900)]
[exo] Refactor knob and log prefix (#9059)
This commit refactors prefix 'EXOTFLITE_' to 'EXO_' as knob and log
structrue is not only for exo-tflite, but about all exo.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
Separate benchmark scripts for neurun and pacl (#8945)
1. Rename run_benchmark_op.sh to run_benchmark_pacl.sh
2. Change run_benchmark.sh to use neurun
3. run_benchmark.sh can handle --benchmark_op option using neurun (porting from run_benchmark_pacl.sh)
4. Remove LD_LIBRARY_PATH from usage msg
5. Append _neurun to script name
Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 03:04:48 +0000 (12:04 +0900)]
[exo] Fix for unused variables in Release build (#9081)
* [exo] Fix for unused variables in Release build
This will fix unused variables warning/error in Release build
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix build error
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 02:01:13 +0000 (11:01 +0900)]
[neurun] Apply nnfw_benchmark_lib to nnpackage_run and tflite_run (#9046)
Apply nnfw_benchmark_lib to nnpackage_run and tflite_run
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 21 Nov 2019 00:51:52 +0000 (09:51 +0900)]
[cwrap] Fix unused function for Rel build (#9071)
This will fix unused function warning/error for Release build
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 21 Nov 2019 00:51:15 +0000 (09:51 +0900)]
[neurun] Remove use of type_index (#9072)
Now that we have OpCode, we do not need type_index.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 22:10:40 +0000 (07:10 +0900)]
[moco-import] Fix for unused variables in Release build (#9069)
This will fix unused variabled warning/error in Release build
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 12:00:12 +0000 (21:00 +0900)]
[neurun] Refine BackendManager ctor (#9058)
- Use `split` helper function rather than directly parsing
- Use container's `empty()` method rather than checking size is 0
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 11:25:11 +0000 (20:25 +0900)]
Add a method isRegistered into TensorBuilder (#9043)
This commit addes a method isRegistered into TensorBuilder.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 10:35:45 +0000 (19:35 +0900)]
[tf2circle-dredd-pb-test] renaming test.* to model.* (#9068)
Previously test.pb and test.info were input to this test. They were renamed to model.*.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 10:25:18 +0000 (19:25 +0900)]
[tf2tflite-dredd-pb-test] renaming test.* to model.* (#9067)
Previously test.pb and test.info were input to this test. They were renamed to model.*.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 09:36:18 +0000 (18:36 +0900)]
[exo] Fix visitor fallback: throw, not assert (#8979)
This commit fixes visitor fallback behavior from assert to throw runtime
error. This is regarding release build.
Fixed visitors:
- TFLNodeVisitor
- TFLMutableNodeVisitor
- CircleNodeVisitor
- CircleMutableNodeVisitor
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
장지섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 08:06:10 +0000 (17:06 +0900)]
Add a tool for extracting subgraph from a pb file (#8911)
This commit adds a tool for extracting subgraph from a pb file.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 20 Nov 2019 07:55:11 +0000 (16:55 +0900)]
[nnfw/gbs] Enable test on tizen (#9053)
- Include gtest source files to remove error by gtest & gmock version mismatch and use on gbs build
- Update skiplist: skip transpose conv until error resolved
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 20 Nov 2019 07:28:18 +0000 (16:28 +0900)]
[neurun/cpu] Enable squeeze operation (#9057)
Enable squeeze operation on neurun cpu backend
Squeeze operation use reshape kernel
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 06:54:44 +0000 (15:54 +0900)]
[xtrace] Move Event tools to libs/misc (#9056)
Move EventRecorder and EventCollector to `libs/misc` from
`contrib/xtrace` so that those can be used from neurun.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
[neurun] Eliminate OperandIndex in Transpose::Param (#9016)
Replace `OperandIndex` in `ArgMax::Param` with `vector<int>`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 05:48:34 +0000 (14:48 +0900)]
[exo] Register Circle service to exo pass (#8996)
* [exo] Register Circle service to exo pass
This commit registers circle shape and type inference service to exo
shape and type inference passes, respectively.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Add todo
[neurun/acl_neon] Simplify code using Operand::asVector (#9039)
Simplify code using newly introduced `Operand::asVector`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 05:22:06 +0000 (14:22 +0900)]
[locomotiv] Fix release build unused var (#9045)
This will fix release build for unused variable warning/error
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 05:19:51 +0000 (14:19 +0900)]
[moco-svc] Fix release build unused var (#9047)
* [moco-svc] Fix release build unused var
This will fix release build for unused variable warning/error
and throw runtime error to usef for invalid model file
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix message
[logo] Added redundant Matrix conversion (#9018)
* Added elimination -- MatrixDecode -- MatrixEncode --
* Added elimination -- MatrixEncode -- MatrixDecode --
Signed-off-by: Pavel Iliutchenko <p.iliutchenk@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 20 Nov 2019 04:57:43 +0000 (13:57 +0900)]
[loco] inline method only used in assert (#9044)
This will inline method only used in assert to prevent Release build warning/error
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 04:18:07 +0000 (13:18 +0900)]
[neurun] Call dlclose for all backends (#9035)
Call dlclose for all backends before termination. The handle pointer is
wrapped as unique_ptr and the handle map's order is changed since the
deletion order matters(backend objects must be deleted first).
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 03:34:47 +0000 (12:34 +0900)]
[exo] Fuse Instance Norm (intro) (#9012)
* [exo] Fuse Instance Norm (intro)
This commit introduces basic code structure for FuseInstanceNormPass. It
also shows subgraph pattern to fuse.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Review feedback: refactoring, new helper, comment
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 03:34:35 +0000 (12:34 +0900)]
[exo] NET_0028(Instance Norm) dredd rule (#9010)
This commit introduces dredd rule for 1.0 release requirement: tf2circle
should merge Instance Norm pattern
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 01:27:05 +0000 (10:27 +0900)]
[xtrace] Extract out EventCollectingListener (#9031)
Extract EventCollectingListener into a separate file.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
김용섭/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 20 Nov 2019 00:54:44 +0000 (09:54 +0900)]
[neurun] Introduce benchmark_lib as benchmark util (#8995)
* [neurun] Introduce benchmark_lib as benchmark util
- Accumulator: accumulates performance value
- CsvWriter: writes data aligning header to csv file
- MemoryPoller: gets memory by polling specific file status
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Remove Accumulator.h
[neurun] Introduce `Operand::asVector` (#9030)
Add `Operand::asVector` method (analogous to `asScalar`) for extracting vectors from constant operands. It is useful in loader (circle/tflite) and NNAPI importer.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 19 Nov 2019 09:20:32 +0000 (18:20 +0900)]
[nnpkg-run] remove tensor_dumper not used any longer (#9025)
It removes tensor_dumper.{h,cc}, which are not used any longer.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 19 Nov 2019 07:55:24 +0000 (16:55 +0900)]
[xtrace] Decouple EventCollector from xray (#9024)
- Introduce new EventCollector class that is not dependent on xray
framework
- Rename as-is `EventCollector` to `EventCollectingListener`
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 19 Nov 2019 07:55:08 +0000 (16:55 +0900)]
[neurun] Fix for const model ouput (again) (#9002)
* [neurun] Fix for const model ouput (again)
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>
* Fix failure
It is wrong that assuming just one use for inputs.
* Merge fix
[neurun] Eliminate OperandIndex in ArgMax::Param (#9015)
Replace `OperandIndex` in `ArgMax::Param` with `int`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 19 Nov 2019 07:13:04 +0000 (16:13 +0900)]
[neurun] Introduce toString for OpCode (#9005)
Introduce toString for OpCode so Operation derivatives do not need to
override `name()` method. At first, I wanted to get rid of `name()`
method but left it due to Custom op.
NOTE : We could get rid of `name()` method if we handle custom
operations specially.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 19 Nov 2019 06:55:03 +0000 (15:55 +0900)]
[exo] Remove commented code (#8992)
This commit removes commented 'set_new_shape' code
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 19 Nov 2019 04:56:02 +0000 (13:56 +0900)]
[dredd] more error handling (#8978)
* [dredd] more error handling
This adds two error handling: 1) error log into $ERROR_LOG file 2) catching error in pipe
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* fixing wrong rule
* another fix for rule file.
여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 19 Nov 2019 02:21:50 +0000 (11:21 +0900)]
Update README (#9019)
Update link for HowToContribute document
- HowToContribute document relocated from docs/nnfw to docs
Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
박천교/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 19 Nov 2019 01:51:06 +0000 (10:51 +0900)]
[exo] Instance Norm summary (#9009)
This commit implements summary for Circle Instance Norm IR.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
이한종/On-Device Lab(SR)/Engineer/삼성전자 [Tue, 19 Nov 2019 00:32:54 +0000 (09:32 +0900)]
[xtrace] nit : Fix inclusion (#9013)
Including `str.h` includes `sstream` indirectly, but it should directly
`sstream` rather than `str.h`.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
[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