박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 08:33:12 +0000 (17:33 +0900)]
[exo/tflite] Honor Graph Input/Output order (#4184)
TFLExporter now creates TensorFlow Lite Graph Input/Output using
graph-level specification.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 08:30:53 +0000 (17:30 +0900)]
[moco/tf] Knob for Canonicalize Conv2D (#4185)
This will add a knob for Canonicalize Conv2D node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 08:12:30 +0000 (17:12 +0900)]
[loco] Graph::NodeContext::create with multiple parameters (#4182)
To support loco node with constructors that takes parameter, Graph::NodeContext::create now takes parameters.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 05:56:50 +0000 (14:56 +0900)]
[locoex/customop] Change directory structure (#4153)
* [locoex/customop] Change directory structure
Moved already-merged file into the following directory structure
-- locoex-customop -+- include -- locoex -- customop -- header files (no sub-directory)
|
+- src - source files (no sub-directory)
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* rename subdir(namespace) customop to node
* renaming directory and node name
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 05:55:39 +0000 (14:55 +0900)]
[moco] Remove empty directories (#4177)
Most of implementations are now in moco-tf and moco-onnx.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 05:37:58 +0000 (14:37 +0900)]
[moco/tf] Introduce PadData (#4160)
* [moco/tf] Introduce PadData
This will introduce PadData used as annotation for TFConv2D pad
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix guard comment
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 04:06:01 +0000 (13:06 +0900)]
[exo.tflite] Manage TFLTensorIndex as annotation (#4162)
The current implementation manages TFLTensorIndex via SubGraphContext,
which necessitates some-level of indirection.
This commit makes exo-tflite to annotate each node with its tensor
index.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 04:05:48 +0000 (13:05 +0900)]
[moco/onnx] Remove make_dimension(uint32_t) usage (#4170)
This commit revises moco-onnx not to invoke deprecated make_dimension(uint32_t).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 04:05:38 +0000 (13:05 +0900)]
[locomotiv] Remove make_dimension(uint32_t) usage (#4171)
This commit revises locomotiv not to invoke deprecated
make_dimension(uint32_t).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 04:05:27 +0000 (13:05 +0900)]
[moco/tf] Remove make_dimension(uint32_t) usage (#4172)
This commit revises moco-tf not to invoke deprecated
make_dimension(uint32_t).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 03:59:31 +0000 (12:59 +0900)]
[locop] Extensible Node Formatting (#4156)
This commit introduces NodeSummaryBuilder & NodeSummaryBuilderFactory
interfaces.
These interfaces allow users to inject their own Node Formatting
implementation.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 03:59:12 +0000 (12:59 +0900)]
[exo.tflite] Restrict TypeContext's visibility (#4159)
TypeInference is the only module that accesses TypeContext.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 01:33:20 +0000 (10:33 +0900)]
[tf2tflite] Enable tests (#4154)
This commit enables additional tests for tf2tlite. Here is the list of tests to
be enabled:
- AvgPool_000
- AvgPool_001
- Concat_002
- Conv2D_000
- MaxPool_000
- Relu_000
- TF_SMALL_NET_0002
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 10 Jul 2019 00:54:01 +0000 (09:54 +0900)]
[moco/tf] Reorder Knob list by function (#4168)
* [moco/tf] Reorder Knob list by function
This will reorder Knob list items by the function
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* remove new one
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 10 Jul 2019 00:01:28 +0000 (09:01 +0900)]
Add Google NSync CMake package (#4161)
* Add Google NSync CMake package
This commit adds Google NSync CMake package.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Remove duplicated set
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 9 Jul 2019 22:07:06 +0000 (07:07 +0900)]
[moco/tf] Introduce StrideData (#4158)
This will introduce StrideData used as annotation for TFConv2D stride
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 9 Jul 2019 06:17:10 +0000 (15:17 +0900)]
[moco/tf] Introduce FuseBinaryIntoPreceding (#4150)
This will introduce empty FuseBinaryIntoPreceding transformation for fusing binary(i.e. mul, add) node to preceding node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 04:48:31 +0000 (13:48 +0900)]
[exo/tflite] Extract SubGraphContext from SerializedModelData (#4151)
This commit extracts SubGraphContext from SerializedModelData.
This information related with T/F Lite SubGraph is necessary to
serialize graph, but not a part of serialized data.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 04:42:36 +0000 (13:42 +0900)]
[locop] Expose NodeDesc class (#4152)
* [locop] Expose NodeDesc class
This commit exposes NodeDesc class as a public class as a step to
support user-defined node pretty-printer.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Remove unnecessary comment
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 9 Jul 2019 01:34:59 +0000 (10:34 +0900)]
[moco/tf] Enable Canonicalizer (#4148)
This will enable two existing two canonicalizer in transformation phase
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 9 Jul 2019 00:30:15 +0000 (09:30 +0900)]
[exo.tflite] Properly propagate type information (#4144)
The current implementation of type inference fails to properly propagate
type information.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 22:07:52 +0000 (07:07 +0900)]
[moco/tf] Introduce CanonicalizeBiasAdd (#4139)
* [moco/tf] Introduce CanonicalizeBiasAdd
This will introduce CanonicalizeBiasAdd transformation that transforms Tensorflow dialect BiasAdd to Canonical dialect BiasAdd.
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* rename and move folder
* fix use return
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 22:03:44 +0000 (07:03 +0900)]
[moco/tf] Processing the schama file for model metainfo file (#4137)
This commit adds schema file and CMakeLists for processing model metainfo file.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 09:36:48 +0000 (18:36 +0900)]
[moco/tf] Fix to use return in Conv2DCanonicalizer (#4142)
This will fix to use return value in Conv2DCanonicalizer
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Mon, 8 Jul 2019 09:36:23 +0000 (09:36 +0000)]
[moco/tf] Introduce ReLU6 (#4131)
* [moco/tf] Introduce ReLU6
This commit introduce ReLU6 operation to moco.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit apply for comments.
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 09:17:55 +0000 (18:17 +0900)]
[moco/tf] Reorder FeatureDecode-TensorBiasAdd (#4127)
"ReorderDecode" is now able to rewrite "FeatureDecode-TensorBiasAdd" as
"FeatureBiasAdd-FeatureDecode".
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 08:23:50 +0000 (17:23 +0900)]
[locop] Introduce SymbolTable interface (#4128)
This commit introduces "SymbolTable" interface as a step to make
locop framework extensible.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 07:21:49 +0000 (16:21 +0900)]
[locop] Default-contructible NodeDesc (#4134)
This commit makes (internal) NodeDesc default-constructible.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 07:21:11 +0000 (16:21 +0900)]
[exo/tflite] Extract Shape Inference (#4138)
This commit extracts shape inference phase from tensor export phase.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 07:14:58 +0000 (16:14 +0900)]
[moco/tf] Introduce CanonicalizeConv2D (#4140)
* [moco/tf] Introduce CanonicalizeConv2D
This will introduce emptyCanonicalizeConv2D that transforms TensorFlow dialect Conv2D to Canonical Conv2D
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* rename and move folder
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 07:10:50 +0000 (16:10 +0900)]
[locoex/customop] Initial commit for Custom Op (#4136)
* [locoex/customop] Initial commit for Custom Op
This is an initial commit for Custom Op. Parents for Custom Op will be added after successive PRs.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* revised
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 02:45:27 +0000 (11:45 +0900)]
[moco/tf] Introduce ResolveFusedBatchNorm (#4125)
This will introduce ResolveFusedBatchNorm transformation that decomposes FusedBatchNorm node into Add and Mul
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 01:50:37 +0000 (10:50 +0900)]
[exo.tflite] Extract Type Inference as a separate phase (#4126)
This commit extracts (Data) Type Inference from exportOpDefinedTensor
phase.
This chanage allows users to infer types without exporting tensors.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 01:11:39 +0000 (10:11 +0900)]
[plier/tf] Move more functions from Moco::tf::convert.h & cpp (#4122)
The following was moved into plier.tf from moco/../convert.h & cpp
- two functions
- test case
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 01:06:31 +0000 (10:06 +0900)]
[moco/tf] name attribute for transforms (#4121)
This will add name() attribute for existing Transforms
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 00:55:21 +0000 (09:55 +0900)]
[moco/tf] simplify get_data_layout (#4124)
This will simplify get_data_layout to call as_DataLayout as common part
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 00:14:54 +0000 (09:14 +0900)]
Add "GoogleDoubleConversion" package (#4112)
* Add "GoogleDoubleConversion" package
This commit introduces "GoogleDoubleConversion" which allows users to
import system-wide Google DoubleConversion library in nncc style.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Remove tab
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 8 Jul 2019 00:14:32 +0000 (09:14 +0900)]
[exo/tflite] Use loco::output_nodes in exportOpDefinedTensors (#4118)
exportOpDefinedTensors currently uses its own implementation of
loco::output_nodes.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 00:11:36 +0000 (09:11 +0900)]
[moco_tf] Fix BiasAdd test indent todo (#4120)
This will fix indentation of BiasAdd test from previous change
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 8 Jul 2019 00:08:21 +0000 (09:08 +0900)]
[moco/tf] Conv2D test support TFConv2D (#4083)
* [moco/tf] Conv2D test support TFConv2D
This will split Conv2D test to support TFConv2D by the knob
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* include knob
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Sun, 7 Jul 2019 23:29:51 +0000 (08:29 +0900)]
[moco/tf] Rename FusedBatchNorm Graph builder (#4119)
This will rename GraphBuilder for FusedBatchNorm with 'TF' prefix to match other GraphBuilders
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 5 Jul 2019 08:49:35 +0000 (17:49 +0900)]
[moco/tf] Add Canonicalization and Knob for TFBiasAdd (#4117)
* [moco/tf] Add Canonicalization and Knob for TFBiasAdd
This will Add Canonicalization class with TFBiassAdd node.
Add a Knob for canonicalization of TFBiasAdd to Canonical BiasAdd node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix note
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 08:47:43 +0000 (17:47 +0900)]
[loco] Introduce FeatureBiasAdd node (#4110)
This commit introduces FeatureBiasAdd which adds a "bias" along
a FeatureMap's depth axis.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 5 Jul 2019 08:25:26 +0000 (17:25 +0900)]
[moco/tf] Import as TFBiasAdd by Knob (#4116)
This will add ImportAsTFBiasAdd knob and import as TFBiasAdd when turned on.
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 5 Jul 2019 07:51:28 +0000 (16:51 +0900)]
[moco/tf] Move helper alias to TFNodeDecl header (#4115)
This will move helper alias from TFConv to TFNodeDecl header for common usage
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Fri, 5 Jul 2019 07:33:24 +0000 (16:33 +0900)]
[moco/tf] Introduce TFBiasAdd (#4114)
This will introduce TFBiasAdd to import BiasAdd node as-is
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 05:24:38 +0000 (14:24 +0900)]
[exo/tflite] Extract Type/Shape Context (#4107)
SerializedModelData has multiple responsibilities as of now.
This commit extracts TypeContext (which manages node-to-type mapping)
and ShapeContext (which manages node-to-shape mapping) as the first step
to internal design revision.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 04:08:10 +0000 (13:08 +0900)]
Add TF_SMALL_NET_0006 test (#4103)
* Add TF_SMALL_NET_0006 test
This test checkes what happens when "Concat" is in between two Feature operations.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update comment
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 04:07:59 +0000 (13:07 +0900)]
[moco/tf] Set Graph Input/Output Data Type (#4104)
From now on, moco::tf::Importer generates a loco graph with
valid Input/Output dtype values.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 04:07:49 +0000 (13:07 +0900)]
[tf2tflite] Refine how to add tests (#4105)
This commit refines tf2tflite test framework to use CMake's "include"
command instead of ListFile_Read function.
This change permits flexible test management. For example, now it is
possible to comment out some tests temporarily.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 01:15:41 +0000 (10:15 +0900)]
[loco] Introduce TensorBiasAdd alias (#4102)
This change allows users to use a bit short "loco::TensorBiasAdd" instead
of "loco::BiasAdd<loco::Domain::Tensor>".
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Fri, 5 Jul 2019 01:04:45 +0000 (10:04 +0900)]
[mocotest/onnx] Generate test file only on change (#4106)
The current implementation always copies and generates test files. With
this commit, test files are copied and generated only when it is
necessary.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 4 Jul 2019 22:05:27 +0000 (07:05 +0900)]
[TFtest] Add TF_SMALL_NET_0004 test (#4095)
* [TFtest] Add TF_SMALL_NET_0004 test
This commit adds TF_SMALL_NET_0004 test which sequentially performs
DepthwiseConv2d - FusedBatchNorm
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* unpack values
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 10:27:03 +0000 (19:27 +0900)]
[loco] Add DataType attribute to Graph Input/Output (#4097)
This commit allows loco frontends to record the data type of graph-level
input/output in GraphInput/GraphOutput.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 4 Jul 2019 10:11:46 +0000 (19:11 +0900)]
[locomotiv] Introduce ReLU6 operation to locomotiv (#4096)
This commit introduce ReLU6 operation to locomotiv.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 09:22:37 +0000 (18:22 +0900)]
[mocotest/tf] Copy files only on change (#4094)
moco testframework now copies (and generates) test files only on change.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
남궁석/On-Device Lab(SR)/Engineer/삼성전자 [Thu, 4 Jul 2019 07:45:55 +0000 (16:45 +0900)]
[TFtest] Add TF_SMALL_NET_0003 test (#4093)
This commit adds TF_SMALL_NET_0003 test which sequentially performs
Conv2d - FusedBatchNorm
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 07:31:04 +0000 (16:31 +0900)]
[mocotest/tf] Use shared testcases (#4091)
mocotest-tf now uses shared TensorFlow tests.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 07:29:25 +0000 (16:29 +0900)]
[tf2tflite] Use shared testcases (#4090)
This commit rewrites tf2tflite test framework to use shared testcases
and removes tf2tflite-local testcases.
tf2tflite test framework now manages whitelist internally.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 4 Jul 2019 04:49:14 +0000 (13:49 +0900)]
[mocotest-tf] test case for custom op (#4078)
* [mocotest-tf] test case for custom op
This is the first testcase for custom op. code for moco/loco extension will be written to pass this test.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* move into new resource dir
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 04:44:29 +0000 (13:44 +0900)]
[moco/tf] Implement ReorderDecode Transform (#4082)
* [moco/tf] Implement ReorderDecode Transform
This commit implements ReorderDecode transform which rewrites Decode ->
Op as Op -> Decode if possible.
The current implementation works only for ReLU.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Hoist loop-invariant code
* Update Graph example
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 04:43:33 +0000 (13:43 +0900)]
[angkor] Add TensorIndex & TensorShape alias (#4085)
This commit introduces an alias of tensor::Index and tensor::Shape under
nncc::core::ADT namespace (to shorten client-side code).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 04:42:15 +0000 (13:42 +0900)]
[tf2tflite] Detect crashes during test (#4089)
* [tf2tflite] Detect crashes during test
The current test frameworks becomes green as long as i5diff succeeds,
and thus it cannot detect any crash in tf2tflite / nnkit-run.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Remove trap code
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 4 Jul 2019 03:59:10 +0000 (12:59 +0900)]
[moco/tf] Introduce TFConv2D IR (#4068)
* [moco/tf] Introduce TFConv2D IR
This will introduce TFConv2D TensorFlow dialect for Conv2D and related changes
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use reference
* as type
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 01:47:42 +0000 (10:47 +0900)]
Introduce ListFile CMake module (#4081)
This commit introduces ListFile CMake module which provides
ListFile_Read helper.
This helper makes it easy to create a list from text files.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Jul 2019 01:36:56 +0000 (10:36 +0900)]
Introduce TensorFlowTests resource (#4080)
This commit introduces TensorFlowTests resource which includes all the
tests in moco-tf and tf2tflite.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 4 Jul 2019 01:29:52 +0000 (10:29 +0900)]
[moco/tf] Branch Conv2D graph builder for TFDialect (#4079)
* [moco/tf] Branch Conv2D graph builder for TFDialect
This will prepare Conv2D graph builder with a knob to generate TFConvD node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use throw
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Thu, 4 Jul 2019 00:15:40 +0000 (09:15 +0900)]
[moco_tf] tensor_shape setter in ShapeInferenceData (#4084)
This will add tensor_shape setter in ShapeInferenceData
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 23:52:39 +0000 (08:52 +0900)]
[moco/tf] Add more methods in Convert (#4070)
* [moco/tf] Add more methods in Convert
This will add more methods in Convert for import
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* use ASSERT_EQ
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 3 Jul 2019 09:12:48 +0000 (18:12 +0900)]
[loco] ReLU6 node (#4077)
This commit introduce ReLU6 node to loco.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Jul 2019 08:16:20 +0000 (17:16 +0900)]
[mocotest/tf] Use TEST_REPO & TEST_SPACE variables (#4074)
This commit updates mocotest-tf's CMakeLists.txt to use TEST_REPO &
TEST_SPACE variables instead of CMAKE_CURRENT_SOURCE_DIR &
CMAKE_CURRENT_BINARY_DIR.
This change gives some flexibility on test directory layout.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 07:56:33 +0000 (16:56 +0900)]
[moco/tf] Run TFOptimizier and Canonicalizer (#4073)
This will make frontend to run TFOptimizier and Canonicalizer
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 07:56:03 +0000 (16:56 +0900)]
[moco/tf] Knob for ResolveFusedBatchNorm (#4075)
This will add a knob for ResolveFusedBatchNorm transform
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 07:29:42 +0000 (16:29 +0900)]
[plier/tf] copy_shape() function (#4066)
* [plier/tf] copy_shape() function
This adds copy_shape() function that copies tensorflow shape proto to angkor shape.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* comment
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Jul 2019 07:28:43 +0000 (16:28 +0900)]
[tf2tflite] Use exo-tflite instead of loco-exporter (#4071)
This commit revises tf2tflite to use exo-tflite instead of
loco-exporter. This change resolves conflicts when loco-exporter
evolves into a in-house package exporter.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
채성우/On-Device Lab(SR)/Engineer/삼성전자 [Wed, 3 Jul 2019 06:31:45 +0000 (15:31 +0900)]
[locomotiv] Add Reshape operation (#4033)
* [locomotiv] Add Reshape operation
This commit introduce Reshape operation to locomotiv.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
* This commit modify code according to comments.
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Jul 2019 06:31:31 +0000 (15:31 +0900)]
Introduce exo-tflite (#4050)
* Introduce exo-tflite
This commit introduces exo-tflite project. All the code itself originates
from loco-exporter, but have small style changes.
This "exo-tflite", unlike loco-exporter, will not evolve into an exporter for
in-house package.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Fix ifdef guard
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 05:42:43 +0000 (14:42 +0900)]
[moco/tf] Introduce Canonicalizer (#4045)
* [moco/tf] Introduce Canonicalizer
This will introduce Canonicalizer for transforming TFNodes to CanonicalNodes
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* remove test
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Jul 2019 05:00:55 +0000 (14:00 +0900)]
[tf2tflite] Rename testcases (#4064)
This commit renames the tests that have a name conflict with moco-tf.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Jul 2019 05:00:41 +0000 (14:00 +0900)]
[loco] Support FeatureCodec clone (#4062)
This commit introduce "clone" API to FeatureEncoder/Decoder interface.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Wed, 3 Jul 2019 04:20:02 +0000 (13:20 +0900)]
Introduce NNCC_EXTERNALS_DIR configuration (#4065)
This commit allows users to download external dependencies
into their own location via setting NNCC_EXTERNALS_DIR.
Note that the default behavior is same as before.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 03:16:35 +0000 (12:16 +0900)]
[plier/tf] Introducing plier/tf (#4056)
* [plier/tf] Introducing plier/tf
This commit introduce `plier/tf`, which is a set of small tools to handle Tensorflow model. These are currently copied from `moco/../Convert.h and cpp` and `moco/../TestHelper.h and cpp`.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* typo
* remove loco
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 01:40:15 +0000 (10:40 +0900)]
[moco/tf] Introduce TFMul IR (#4061)
This will add TFMul IR and related codes to support TensorFlow Mul node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Wed, 3 Jul 2019 00:22:56 +0000 (09:22 +0900)]
[moco/tf] Add transforms for TFAdd (#4060)
This will add missing TFAdd related transforms
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 23:59:59 +0000 (08:59 +0900)]
[moco/tf] Import FusedBatchNorm (#4053)
* [moco/tf] Import FusedBatchNorm
This will add import of FusedBatchNorm to TFFusedBatchNorm IR
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* add required transformation handlers
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 23:59:02 +0000 (08:59 +0900)]
[moco/tf] Test for TFFusdBatchNorm (#4052)
This will add ctor unit test of TFFusedBatchNorm
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 22:26:17 +0000 (07:26 +0900)]
[moco/tf] Introduce TFAdd IR (#4051)
* [moco/tf] Introduce TFAdd IR
This will introduce TensorFlow dialect Add IR
- this will be used as intermediate node while resolving FusedBatchNorm node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* apply comments
* another comment
* privode GraphDef example
이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 09:21:47 +0000 (18:21 +0900)]
Update README.modified (#4048)
- Add `Mainterners` and `Committers` list to following the rule of Samsung
Inner Source Program.
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 2 Jul 2019 08:03:04 +0000 (17:03 +0900)]
[tf2tflite] Add TF_SMALL_NET_0001 test (#4047)
This commit adds TF_SMALL_NET_0001 test which sequentially performs
Conv2D-BiasAdd-Conv2D operations.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 07:45:38 +0000 (16:45 +0900)]
[moco/tf] Introduce TFOptimizier (#4049)
This will introduce TFOptimizier to provide transformations with TensorFlow Dialects
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 07:43:35 +0000 (16:43 +0900)]
[moco/tf] Add ImportAsTFConv2D knob (#4044)
This will add ImportAsTFConv2D in knob to switch Conv2D import as Canonical or TensorFlow Conv2D
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 2 Jul 2019 05:03:06 +0000 (14:03 +0900)]
Add TensorFlow 1.14 source package (#4043)
This commit introduces TensorFlow v1.1.4 source package which allows
each sub-project to access T/F 1.14 source during build.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 04:30:17 +0000 (13:30 +0900)]
[mocotest/tf] FusedBatchNorm_001 (#4042)
This will add FusedBatchNorm_001 test material having values for calculation validation
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 04:29:48 +0000 (13:29 +0900)]
[mocotest/tf] FusedBatchNorm_000 (#4041)
This will add FusedBatchNorm_000 test material for minimul testing for FusedBatchNorm node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 2 Jul 2019 04:05:52 +0000 (13:05 +0900)]
[moco/tf] Introduce Domain Conversion Simplification (#4037)
This commit introduces Domain Conversion Simplification optimizations
which convertes FeatureDecode followed by FeatureEncode as Forward.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Tue, 2 Jul 2019 03:12:59 +0000 (12:12 +0900)]
[moco/tf] Move Transform.h to the top-level (#4038)
This change makes it easy to distinguish Transform declaration (Transform.h) and
enumerate its implementations (all the files under Transforms/).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 03:05:56 +0000 (12:05 +0900)]
[moco/tf] Introduce TFFusedBatchNorm IR (#4039)
This will introduce TFFusedBatchNorm to import TensorFlow FusedBatchNorm node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jul 2019 00:51:15 +0000 (09:51 +0900)]
[moco/tf] Add TFNode visitor (#4036)
* [moco/tf] Add TFNode visitor
This will add visitor related methods in TFNode
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* fix comments
박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 [Mon, 1 Jul 2019 10:50:32 +0000 (19:50 +0900)]
[moco/tf] Implement Dead Node Elimination (#4032)
Now, moco.tf compilation pipiline support Dead Node Elimination. Note that
this optimization is off by default.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 [Mon, 1 Jul 2019 09:31:33 +0000 (18:31 +0900)]
[moco/tf] Introduce TFNode for TensorFlow dialect (#4029)
This will introduce TFNode and TFNodeImpl for Tensorflow dialect
Signed-off-by: SaeHie Park <saehie.park@samsung.com>