summaryrefslogtreecommitdiff
path: root/compiler
AgeCommit message (Collapse)AuthorFilesLines
2019-09-06[exo-tflite] Adding ReluConverter into convert_to_TFLNodes() (#7257)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-3/+12
* [exo-tflite] Adding ReluConverter into convert_to_TFLNodes() This adds ReluConverter and type/shape inference into convert_to_TFLNodes(). Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com> * saturate -> restart
2019-09-06[moco-tf] Skip canonical node fix shape (#7244)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-2/+4
This will skip canonical nodes fix shapes that is done as loco service - Pull and Push nodes are still called as they exist in import Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-06[moco-tf] Fix SquaredDifferenceCanonicalizer (#7245)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-3/+21
This will fix SquaredDifferenceCanonicalizer to check input nodes shape Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-06[moco-tf] Remove unused ForwardShapeInferenceAlgorithm (#7246)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-109/+2
This will remove not used anymore ForwardShapeInferenceAlgorithm Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-06Introduce bino (#7247)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자5-0/+143
This commit introduces bino, a library that facilitates std::pair manipulation. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-06[exo-tflite] change TODO (TFL node list to canonical node list) (#7256)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-16/+18
Changing TODO list from (wrong) TFL node list to canonical node list. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-06[loco] Do NOT invoke shape_get directly (#7231)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-33/+30
This commit replaces all the loco::shape_get calls in ForwardShapeInferenceAlgorithm implemention with "node_shape" method to facilitate refactoring. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-06[locop] Introduce ExampleGraph (#7229)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자2-23/+75
Let's reuse common test code. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-06[moco-tf] Remove canonical concat axis test (#7230)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-146/+0
This will remove Canonical Concat IR test for axis - Canonical IRs will not be handled in shape inference anymore - Current Concat axis calculation is done in shape inference step Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-05[mir] Add dumpGraph function (#7242)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자2-0/+10
Add `dumpGraph` function as a future replacement of `IrDotDumper`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-05[mir] Revive IVisitor in proper way (#6657)Alexander Efimov/AI Tools Lab/./Samsung Electronics9-10/+81
Return IVisitor as a strict version of Visitor Propose to not use IVisitor outside of MIR component Add missing includes and licenses Signed-off-by: Efimov Alexander <a.efimov@samsung.com> Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-05[nnc] Add missing include (#7241)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-0/+1
Add missing include of `Visitor.h`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-05[mir2loco] Add missing include (#7240)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-0/+1
Add missing include of `Visitor.h`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-05[mir] Make Shape constructor explicit (#7239)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자2-5/+4
Make `Shape` constructor explicit again. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-05[nnc] Remove conversions of strides vector to Shape (#7237)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자8-27/+47
Remove implicit conversions of strides to `Shape`. Add helper functions to work with strides. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-05[mocotest-tf] Enable UNIT_StopGradient_001 (#7224)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+1
This will enable UNIT_StopGradient_001 that is rank 4 test of StopGradient Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-05[tf2tflite] Enable UNIT_StopGradient_001 (#7223)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+1
This will enable UNIT_StopGradient_001 that is rank 4 test of StopGradient Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-05[exo-tflite] introducing TypeInferencePass (#7225)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+88
TypeInferencePass annotates dtype of nodes (canonical/TFL/COp nodes). Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[exo-tflite] Introducing ProgressReporter listner (#7221)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+137
* [exo-tflite] Introducing ProgressReporter listner ProgressReporter is copied from moco-tf to print information before/after phase. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com> * CI error -> remove unused parameter
2019-09-05[exo-tflite] Adding list of converters as TODO (#7228)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-4/+22
This adds list of converters as TODO. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[exo-tflite] Prepare slots for template initialization (#7227)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-0/+16
This adds slots for template initialization in CanonicalNodeConverter, which prevents code conflict. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[moco-tf] Return for ShapeInferencePass (#7220)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-3/+1
This will return value from loco shape inference in ShapeInferencePass Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-05[moco-tf] Use loco::shape in import (#7217)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-3/+7
This will revise import to use loco shape instead of ShapeInferenceData - also add guards for safety Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-05[loco] Enhancing TypeInference::to() (#7206)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자3-7/+34
Now 1) TypeInference::to()returns bool 2) checks previously inferred dtype Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[exo-tflite] Introducing ReluConverter (#7216)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자3-3/+131
This converter converts loco::Relu to locoex::TFLRelu. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[moco-tf] Skip FuseBinaryIntoPreceding on Scalar (#7219)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-0/+5
The current implementation of FuseBinaryIntoPreceding gets stuck when it encounters scalar constants. Let's make FuseBinaryIntoPreceding skip on this case. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-05[locop] Use shared FormattedTensorShape (#7212)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-42/+5
The current implementation of CanonicalNodeSummaryBuilder implements its own TensorShape formatter. Let's replace this local formater with the shared one. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-05[locop] Show value domain (#7202)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-1/+37
LinearV1 Graph Formatter now shows domain if domain(shape) is known. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-05[moco_tf] Do shape and type inference in TFOptimizer (#7215)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+3
This will run Shape and Type inference while TF dialect optimizations Signed-off-by: SaeHie Park <saehie.park@samsung.com>
2019-09-05[exo-tflite] introducing ShapeInferencePass (#7214)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+89
ShapeInferencePass annotates shape of nodes (canonical/TFL/COp nodes). Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[exo-tflite] type inference for TFLRelu (#7208)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-1/+4
This adds type inference for TFLRelu. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[exo-tflite] shape inference for TFLRelu (#7210)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-1/+6
This adds shape inferene for TFLRelu. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[locoex] Enhance COpTypeInference test (#7204)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자1-2/+10
This includes CanonicalTypeInferenceRule check. This is required for future change of loco::TypeInference, which looks into the dtype of all input nodes. So, the type of loco::Pull should be inferred to infer the type of locoex::COpCall. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[moco-tf] Use ShapeInferenceData for rule (#7184)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-3/+9
* [moco-tf] Use ShapeInferenceData for rule This will revise TFShapeInferenceRule infer to directly use ShapeInferenceData Signed-off-by: SaeHie Park <saehie.park@samsung.com> * change scope
2019-09-05[exo-tflite] Added TODO for each TFL Nodes in shape & type inference code ↵윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+68
(#7203) This creates a slots for visit() of each TFL node. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[loco] Introduce TensorAxis header (#7188)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자3-2/+49
Currently, PermutingCodec internally declares TensorAxis alias. Let's extract this as a separate header and reuse it! Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-05[locop] NodeSummary with Comments (#7193)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자4-1/+44
This commit allows usersr to add multi-line comments to NodeSummary, and revises LinearV1 Graph Formatter to show these comments properly. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-05Introduce tfts v0.1 (#7165)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자4-0/+107
* Introduce tfts v0.1 This commit introduces TensorFlow Testcase Service (tfts) v0.1. The current version supports basic shape check on TensorFlow testcases through nnkit-tf. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com> * Use simple tfts_check instead of tfts_shape_check
2019-09-05[exo-tflite] Remove TFLShapeAnnot and TFLTypeAnnot (#7197)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자6-166/+7
Instead of using TFLShapeAnnot and TFLTypeAnnot, we will have type and shape inference for each TFL Nodes. So these annot classes is removed. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
2019-09-05[locop] Remove symbol_lookup helper (#7196)박종현/On-Device Lab(SR)/Staff Engineer/삼성전자1-9/+2
This helper is no longer meaningful. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
2019-09-05[loco] Revise shape inference condition (#7161)박세희/On-Device Lab(SR)/Principal Engineer/삼성전자1-3/+25
* [loco] Revise shape inference condition This will add condition to ShapeInference to infer when target node shape is unknown and input(s) shape is ready Signed-off-by: SaeHie Park <saehie.park@samsung.com> * remove print code
2019-09-04[mir_caffe2] Reshape bias for Convolution (#7170)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-1/+3
Fixes compilation error of mobilenet. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[mir] Change type of strides parameter (#7179)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자6-41/+41
Change the type of `strides` parameter of convolutional operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[nnc] Change type of strides argument (#7177)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자4-12/+13
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[mir_tflite] Change type of strides argument (#7176)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-4/+3
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[mir2loco] Change type of strides argument (#7178)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-4/+4
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[mir_caffe] Change type of strides argument (#7175)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-6/+7
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[mir_caffe2] Change type of strides argument (#7174)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-6/+6
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[mir_onnx] Change type of strides argument (#7173)Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자1-5/+4
Change the type of `strides` argument of `Conv2D` and `DepthwiseConv2D` operations to `vector<int32_t>`. Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
2019-09-04[loco] Introducing BiasDecode (#7158)윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자2-0/+14
This introduce loco::BiasDecode, which translate Bias domain to Tensor domain. Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>