summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunseok Lee <chunseok.lee@samsung.com>2020-04-23 05:45:49 (GMT)
committerChunseok Lee <chunseok.lee@samsung.com>2020-04-23 05:45:49 (GMT)
commite2ef8438a24f7c56a0744eb579a6e293ee2fbf8e (patch)
tree44a1a7951d168dd4370e13593ed03f4bc6d920c5
parent302e6564a7a76109e1178207e44e45a58631c477 (diff)
downloadnnfw-e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e.zip
nnfw-e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e.tar.gz
nnfw-e2ef8438a24f7c56a0744eb579a6e293ee2fbf8e.tar.bz2
Imported Upstream version 1.4.0upstream/1.4.0submit/tizen/20200423.054851
-rw-r--r--.ctags2
-rw-r--r--.gitignore2
-rw-r--r--LICENSE426
-rw-r--r--Makefile.template4
-rw-r--r--README.md29
-rw-r--r--compiler/CMakeLists.txt78
-rw-r--r--compiler/adtidas/CMakeLists.txt2
-rw-r--r--compiler/adtidas/include/adtidas/SmallVector.h156
-rw-r--r--compiler/angkor/CMakeLists.txt22
-rw-r--r--compiler/angkor/README.md51
-rw-r--r--compiler/angkor/include/angkor/TensorIndex.h29
-rw-r--r--compiler/angkor/include/angkor/TensorShape.h29
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/Accessor.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/Buffer.h59
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/CHWLayout.h41
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/HWCLayout.h41
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/Layout.h54
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/Overlay.h60
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/Reader.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/Shape.h74
-rw-r--r--compiler/angkor/include/nncc/core/ADT/feature/View.h71
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/Accessor.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/Buffer.h72
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/IndexEnumerator.h70
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/Layout.h54
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/NCHWLayout.h41
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/NHWCLayout.h41
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/Overlay.h81
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/Reader.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/Shape.h73
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/View.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/kernel/ViewImpl.h67
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Accessor.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Buffer.h57
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Index.h65
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/IndexEnumerator.h63
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Layout.h52
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/LexicalLayout.h41
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Overlay.h58
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Reader.h43
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/Shape.h70
-rw-r--r--compiler/angkor/include/nncc/core/ADT/tensor/View.h70
-rw-r--r--compiler/angkor/src/ADT/feature/Accessor.cpp21
-rw-r--r--compiler/angkor/src/ADT/feature/Buffer.test.cpp48
-rw-r--r--compiler/angkor/src/ADT/feature/CHWLayout.cpp43
-rw-r--r--compiler/angkor/src/ADT/feature/CHWLayout.test.cpp45
-rw-r--r--compiler/angkor/src/ADT/feature/HWCLayout.cpp43
-rw-r--r--compiler/angkor/src/ADT/feature/HWCLayout.test.cpp57
-rw-r--r--compiler/angkor/src/ADT/feature/Layout.cpp35
-rw-r--r--compiler/angkor/src/ADT/feature/Layout.test.cpp56
-rw-r--r--compiler/angkor/src/ADT/feature/Overlay.test.cpp72
-rw-r--r--compiler/angkor/src/ADT/feature/Reader.cpp21
-rw-r--r--compiler/angkor/src/ADT/feature/Shape.test.cpp56
-rw-r--r--compiler/angkor/src/ADT/kernel/Buffer.test.cpp49
-rw-r--r--compiler/angkor/src/ADT/kernel/IndexEnumerator.cpp84
-rw-r--r--compiler/angkor/src/ADT/kernel/IndexEnumerator.test.cpp46
-rw-r--r--compiler/angkor/src/ADT/kernel/Layout.cpp38
-rw-r--r--compiler/angkor/src/ADT/kernel/Layout.test.cpp56
-rw-r--r--compiler/angkor/src/ADT/kernel/NCHWLayout.cpp43
-rw-r--r--compiler/angkor/src/ADT/kernel/NCHWLayout.test.cpp53
-rw-r--r--compiler/angkor/src/ADT/kernel/NHWCLayout.cpp43
-rw-r--r--compiler/angkor/src/ADT/kernel/NHWCLayout.test.cpp74
-rw-r--r--compiler/angkor/src/ADT/kernel/Overlay.test.cpp73
-rw-r--r--compiler/angkor/src/ADT/kernel/Reader.cpp20
-rw-r--r--compiler/angkor/src/ADT/kernel/Shape.cpp37
-rw-r--r--compiler/angkor/src/ADT/kernel/Shape.test.cpp58
-rw-r--r--compiler/angkor/src/ADT/tensor/Buffer.test.cpp49
-rw-r--r--compiler/angkor/src/ADT/tensor/Index.cpp81
-rw-r--r--compiler/angkor/src/ADT/tensor/Index.test.cpp119
-rw-r--r--compiler/angkor/src/ADT/tensor/IndexEnumerator.cpp100
-rw-r--r--compiler/angkor/src/ADT/tensor/IndexEnumerator.test.cpp48
-rw-r--r--compiler/angkor/src/ADT/tensor/Layout.cpp35
-rw-r--r--compiler/angkor/src/ADT/tensor/Layout.test.cpp56
-rw-r--r--compiler/angkor/src/ADT/tensor/LexicalLayout.cpp60
-rw-r--r--compiler/angkor/src/ADT/tensor/LexicalLayout.test.cpp54
-rw-r--r--compiler/angkor/src/ADT/tensor/Overlay.test.cpp75
-rw-r--r--compiler/angkor/src/ADT/tensor/Reader.cpp21
-rw-r--r--compiler/angkor/src/ADT/tensor/Shape.cpp91
-rw-r--r--compiler/angkor/src/ADT/tensor/Shape.test.cpp185
-rw-r--r--compiler/angkor/src/TensorIndex.test.cpp87
-rw-r--r--compiler/angkor/src/TensorShape.test.cpp99
-rw-r--r--compiler/ann-api/CMakeLists.txt2
-rw-r--r--compiler/ann-api/include/.FORMATDENY0
-rw-r--r--compiler/ann-api/include/NeuralNetworks.h2075
-rw-r--r--compiler/ann-ref/.FORMATDENY0
-rw-r--r--compiler/ann-ref/CMakeLists.txt32
-rw-r--r--compiler/ann-ref/README.md7
-rw-r--r--compiler/ann-ref/requires.cmake1
-rw-r--r--compiler/ann-ref/src/Assert.h34
-rw-r--r--compiler/ann-ref/src/CompilationBuilder.cpp52
-rw-r--r--compiler/ann-ref/src/CompilationBuilder.h44
-rw-r--r--compiler/ann-ref/src/ExecutionBuilder.cpp196
-rw-r--r--compiler/ann-ref/src/ExecutionBuilder.h73
-rw-r--r--compiler/ann-ref/src/Executor.cpp814
-rw-r--r--compiler/ann-ref/src/Executor.h114
-rw-r--r--compiler/ann-ref/src/Logging.cpp30
-rw-r--r--compiler/ann-ref/src/Logging.h42
-rw-r--r--compiler/ann-ref/src/Macro.h22
-rw-r--r--compiler/ann-ref/src/Memory.cpp105
-rw-r--r--compiler/ann-ref/src/Memory.h106
-rw-r--r--compiler/ann-ref/src/MemoryTracker.cpp50
-rw-r--r--compiler/ann-ref/src/MemoryTracker.h49
-rw-r--r--compiler/ann-ref/src/Model.h39
-rw-r--r--compiler/ann-ref/src/ModelArgumentInfo.cpp121
-rw-r--r--compiler/ann-ref/src/ModelArgumentInfo.h58
-rw-r--r--compiler/ann-ref/src/ModelBuilder.cpp483
-rw-r--r--compiler/ann-ref/src/ModelBuilder.h142
-rw-r--r--compiler/ann-ref/src/NeuralNetworks.cpp338
-rw-r--r--compiler/ann-ref/src/Operand.h61
-rw-r--r--compiler/ann-ref/src/OperandType.cpp55
-rw-r--r--compiler/ann-ref/src/OperandType.h43
-rw-r--r--compiler/ann-ref/src/OperandType.probe.cpp32
-rw-r--r--compiler/ann-ref/src/Operation.h32
-rw-r--r--compiler/ann-ref/src/OperationType.cpp67
-rw-r--r--compiler/ann-ref/src/OperationType.h66
-rw-r--r--compiler/ann-ref/src/OperationType.probe.cpp85
-rw-r--r--compiler/ann-ref/src/Probe.cpp89
-rw-r--r--compiler/ann-ref/src/Request.h35
-rw-r--r--compiler/ann-ref/src/Shape.cpp68
-rw-r--r--compiler/ann-ref/src/Shape.h47
-rw-r--r--compiler/ann-ref/src/Validation.cpp263
-rw-r--r--compiler/ann-ref/src/Validation.h34
-rw-r--r--compiler/ann-ref/src/ops/Add.cpp57
-rw-r--r--compiler/ann-ref/src/ops/Add.float.cpp122
-rw-r--r--compiler/ann-ref/src/ops/Add.float.h28
-rw-r--r--compiler/ann-ref/src/ops/Add.h25
-rw-r--r--compiler/ann-ref/src/ops/AvgPool2D.cpp30
-rw-r--r--compiler/ann-ref/src/ops/AvgPool2D.float.cpp123
-rw-r--r--compiler/ann-ref/src/ops/AvgPool2D.float.h31
-rw-r--r--compiler/ann-ref/src/ops/AvgPool2D.h30
-rw-r--r--compiler/ann-ref/src/ops/Concatenation.cpp66
-rw-r--r--compiler/ann-ref/src/ops/Concatenation.float.cpp84
-rw-r--r--compiler/ann-ref/src/ops/Concatenation.float.h30
-rw-r--r--compiler/ann-ref/src/ops/Concatenation.h28
-rw-r--r--compiler/ann-ref/src/ops/Conv2D.cpp57
-rw-r--r--compiler/ann-ref/src/ops/Conv2D.float.cpp256
-rw-r--r--compiler/ann-ref/src/ops/Conv2D.float.h31
-rw-r--r--compiler/ann-ref/src/ops/Conv2D.h29
-rw-r--r--compiler/ann-ref/src/ops/DepthwiseConv2D.cpp57
-rw-r--r--compiler/ann-ref/src/ops/DepthwiseConv2D.float.cpp311
-rw-r--r--compiler/ann-ref/src/ops/DepthwiseConv2D.float.h32
-rw-r--r--compiler/ann-ref/src/ops/DepthwiseConv2D.h30
-rw-r--r--compiler/ann-ref/src/ops/Div.cpp57
-rw-r--r--compiler/ann-ref/src/ops/Div.float.cpp122
-rw-r--r--compiler/ann-ref/src/ops/Div.float.h28
-rw-r--r--compiler/ann-ref/src/ops/Div.h25
-rw-r--r--compiler/ann-ref/src/ops/FullyConnected.cpp70
-rw-r--r--compiler/ann-ref/src/ops/FullyConnected.float.cpp65
-rw-r--r--compiler/ann-ref/src/ops/FullyConnected.float.h29
-rw-r--r--compiler/ann-ref/src/ops/FullyConnected.h28
-rw-r--r--compiler/ann-ref/src/ops/MaxPool2D.cpp30
-rw-r--r--compiler/ann-ref/src/ops/MaxPool2D.float.cpp118
-rw-r--r--compiler/ann-ref/src/ops/MaxPool2D.float.h31
-rw-r--r--compiler/ann-ref/src/ops/MaxPool2D.h30
-rw-r--r--compiler/ann-ref/src/ops/Mul.cpp57
-rw-r--r--compiler/ann-ref/src/ops/Mul.float.cpp122
-rw-r--r--compiler/ann-ref/src/ops/Mul.float.h28
-rw-r--r--compiler/ann-ref/src/ops/Mul.h25
-rw-r--r--compiler/ann-ref/src/ops/Pad.cpp189
-rw-r--r--compiler/ann-ref/src/ops/Pad.h31
-rw-r--r--compiler/ann-ref/src/ops/ReLU.cpp25
-rw-r--r--compiler/ann-ref/src/ops/ReLU.float.cpp31
-rw-r--r--compiler/ann-ref/src/ops/ReLU.float.h26
-rw-r--r--compiler/ann-ref/src/ops/ReLU.h25
-rw-r--r--compiler/ann-ref/src/ops/ReLU6.cpp25
-rw-r--r--compiler/ann-ref/src/ops/ReLU6.float.cpp31
-rw-r--r--compiler/ann-ref/src/ops/ReLU6.float.h26
-rw-r--r--compiler/ann-ref/src/ops/ReLU6.h25
-rw-r--r--compiler/ann-ref/src/ops/Reshape.cpp73
-rw-r--r--compiler/ann-ref/src/ops/Reshape.h31
-rw-r--r--compiler/ann-ref/src/ops/Softmax.cpp25
-rw-r--r--compiler/ann-ref/src/ops/Softmax.float.cpp71
-rw-r--r--compiler/ann-ref/src/ops/Softmax.float.h28
-rw-r--r--compiler/ann-ref/src/ops/Softmax.h27
-rw-r--r--compiler/ann-ref/src/ops/Sub.cpp57
-rw-r--r--compiler/ann-ref/src/ops/Sub.float.cpp122
-rw-r--r--compiler/ann-ref/src/ops/Sub.float.h28
-rw-r--r--compiler/ann-ref/src/ops/Sub.h25
-rw-r--r--compiler/ann-ref/src/ops/internal/ActivationUtils.h59
-rw-r--r--compiler/ann-ref/src/ops/internal/Array.h46
-rw-r--r--compiler/ann-ref/src/ops/internal/Dims.h167
-rw-r--r--compiler/ann-ref/src/ops/internal/Elementwise.cpp25
-rw-r--r--compiler/ann-ref/src/ops/internal/Elementwise.h25
-rw-r--r--compiler/ann-ref/src/ops/internal/FeatureMap.h26
-rw-r--r--compiler/ann-ref/src/ops/internal/Fused.cpp28
-rw-r--r--compiler/ann-ref/src/ops/internal/Fused.h84
-rw-r--r--compiler/ann-ref/src/ops/internal/GEMM.h38
-rw-r--r--compiler/ann-ref/src/ops/internal/Macro.h58
-rw-r--r--compiler/ann-ref/src/ops/internal/Matrix.h127
-rw-r--r--compiler/ann-ref/src/ops/internal/NDArray.h133
-rw-r--r--compiler/ann-ref/src/ops/internal/Pooling.cpp43
-rw-r--r--compiler/ann-ref/src/ops/internal/Pooling.h31
-rw-r--r--compiler/ann-ref/src/ops/internal/Spatial.h29
-rw-r--r--compiler/bino/CMakeLists.txt14
-rw-r--r--compiler/bino/README.md5
-rw-r--r--compiler/bino/include/bino.h57
-rw-r--r--compiler/bino/tests/Functional.tests.cpp35
-rw-r--r--compiler/caffe2circle/CMakeLists.txt16
-rw-r--r--compiler/caffe2circle/README.md3
-rw-r--r--compiler/caffe2circle/requires.cmake3
-rw-r--r--compiler/caffe2circle/src/caffe2circle.cpp39
-rw-r--r--compiler/caffegen/CMakeLists.txt14
-rw-r--r--compiler/caffegen/README.md45
-rw-r--r--compiler/caffegen/src/DecodeCommand.cpp46
-rw-r--r--compiler/caffegen/src/DecodeCommand.h27
-rw-r--r--compiler/caffegen/src/Driver.cpp42
-rw-r--r--compiler/caffegen/src/EncodeCommand.cpp51
-rw-r--r--compiler/caffegen/src/EncodeCommand.h27
-rw-r--r--compiler/caffegen/src/InitCommand.cpp65
-rw-r--r--compiler/caffegen/src/InitCommand.h27
-rw-r--r--compiler/caffegen/src/MergeCommand.cpp58
-rw-r--r--compiler/caffegen/src/MergeCommand.h33
-rw-r--r--compiler/circle-inspect/CMakeLists.txt13
-rw-r--r--compiler/circle-inspect/README.md22
-rw-r--r--compiler/circle-inspect/driver/Driver.cpp96
-rw-r--r--compiler/circle-inspect/requires.cmake3
-rw-r--r--compiler/circle-inspect/src/Dump.cpp135
-rw-r--r--compiler/circle-inspect/src/Dump.h56
-rw-r--r--compiler/circle-inspect/src/Model.cpp143
-rw-r--r--compiler/circle-inspect/src/Model.h43
-rw-r--r--compiler/circle-inspect/src/Reader.cpp166
-rw-r--r--compiler/circle-inspect/src/Reader.h91
-rw-r--r--compiler/circle-verify/CMakeLists.txt12
-rw-r--r--compiler/circle-verify/README.md23
-rw-r--r--compiler/circle-verify/requires.cmake4
-rw-r--r--compiler/circle-verify/src/Driver.cpp51
-rw-r--r--compiler/circle-verify/src/Model.cpp90
-rw-r--r--compiler/circle-verify/src/Model.h38
-rw-r--r--compiler/circle-verify/src/VerifyFlatBuffers.cpp36
-rw-r--r--compiler/circle-verify/src/VerifyFlatBuffers.h32
-rw-r--r--compiler/circle2circle/CMakeLists.txt42
-rw-r--r--compiler/circle2circle/README.md3
-rw-r--r--compiler/circle2circle/include/CircleExpContract.h50
-rw-r--r--compiler/circle2circle/include/Model.h43
-rw-r--r--compiler/circle2circle/requires.cmake10
-rw-r--r--compiler/circle2circle/src/Circle2Circle.cpp120
-rw-r--r--compiler/circle2circle/src/Circle2Circle.test.cpp29
-rw-r--r--compiler/circle2circle/src/CircleExpContract.cpp33
-rw-r--r--compiler/circle2circle/src/Model.cpp78
-rw-r--r--compiler/circle2circle/src/TestHelper.h55
-rw-r--r--compiler/circledump/CMakeLists.txt14
-rw-r--r--compiler/circledump/README.md71
-rw-r--r--compiler/circledump/driver/Driver.cpp52
-rw-r--r--compiler/circledump/include/circledump/Dump.h32
-rw-r--r--compiler/circledump/include/circleread/Model.h43
-rw-r--r--compiler/circledump/requires.cmake3
-rw-r--r--compiler/circledump/src/Dump.cpp310
-rw-r--r--compiler/circledump/src/Load.cpp133
-rw-r--r--compiler/circledump/src/OpPrinter.cpp307
-rw-r--r--compiler/circledump/src/OpPrinter.h61
-rw-r--r--compiler/circledump/src/Read.cpp169
-rw-r--r--compiler/circledump/src/Read.h101
-rw-r--r--compiler/cli/CMakeLists.txt15
-rw-r--r--compiler/cli/README.md13
-rw-r--r--compiler/cli/include/cli/App.h50
-rw-r--r--compiler/cli/include/cli/Command.h32
-rw-r--r--compiler/cli/include/cli/FunctionCommand.h46
-rw-r--r--compiler/cli/src/App.cpp74
-rw-r--r--compiler/cli/src/App.test.cpp63
-rw-r--r--compiler/coco/CMakeLists.txt2
-rw-r--r--compiler/coco/README.md3
-rw-r--r--compiler/coco/core/CMakeLists.txt25
-rw-r--r--compiler/coco/core/include/coco/ADT/DLinkedList.h288
-rw-r--r--compiler/coco/core/include/coco/ADT/PtrList.h54
-rw-r--r--compiler/coco/core/include/coco/ADT/PtrManager.h67
-rw-r--r--compiler/coco/core/include/coco/IR.h34
-rw-r--r--compiler/coco/core/include/coco/IR/Arg.h80
-rw-r--r--compiler/coco/core/include/coco/IR/Bag.h164
-rw-r--r--compiler/coco/core/include/coco/IR/BagManager.h47
-rw-r--r--compiler/coco/core/include/coco/IR/Block.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Block.h78
-rw-r--r--compiler/coco/core/include/coco/IR/BlockIndex.h63
-rw-r--r--compiler/coco/core/include/coco/IR/BlockManager.h47
-rw-r--r--compiler/coco/core/include/coco/IR/Def.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Def.h52
-rw-r--r--compiler/coco/core/include/coco/IR/Dep.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Dep.h59
-rw-r--r--compiler/coco/core/include/coco/IR/DepSet.h31
-rw-r--r--compiler/coco/core/include/coco/IR/ElemID.h51
-rw-r--r--compiler/coco/core/include/coco/IR/Entity.h51
-rw-r--r--compiler/coco/core/include/coco/IR/EntityBuilder.h48
-rw-r--r--compiler/coco/core/include/coco/IR/EntityManager.h67
-rw-r--r--compiler/coco/core/include/coco/IR/FeatureLayout.h54
-rw-r--r--compiler/coco/core/include/coco/IR/FeatureLayouts.h159
-rw-r--r--compiler/coco/core/include/coco/IR/FeatureObject.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/FeatureObject.h63
-rw-r--r--compiler/coco/core/include/coco/IR/FeatureShape.h70
-rw-r--r--compiler/coco/core/include/coco/IR/Input.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Input.h44
-rw-r--r--compiler/coco/core/include/coco/IR/InputList.h31
-rw-r--r--compiler/coco/core/include/coco/IR/InputManager.h39
-rw-r--r--compiler/coco/core/include/coco/IR/Instr.forward.h28
-rw-r--r--compiler/coco/core/include/coco/IR/Instr.h161
-rw-r--r--compiler/coco/core/include/coco/IR/Instr.lst9
-rw-r--r--compiler/coco/core/include/coco/IR/InstrIndex.h63
-rw-r--r--compiler/coco/core/include/coco/IR/InstrManager.h66
-rw-r--r--compiler/coco/core/include/coco/IR/Instrs.h175
-rw-r--r--compiler/coco/core/include/coco/IR/KernelLayout.h58
-rw-r--r--compiler/coco/core/include/coco/IR/KernelLayouts.h117
-rw-r--r--compiler/coco/core/include/coco/IR/KernelObject.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/KernelObject.h65
-rw-r--r--compiler/coco/core/include/coco/IR/Locatable.h37
-rw-r--r--compiler/coco/core/include/coco/IR/Module.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Module.h67
-rw-r--r--compiler/coco/core/include/coco/IR/Object.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Object.h144
-rw-r--r--compiler/coco/core/include/coco/IR/ObjectManager.h53
-rw-r--r--compiler/coco/core/include/coco/IR/ObjectSet.h31
-rw-r--r--compiler/coco/core/include/coco/IR/Op.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Op.h255
-rw-r--r--compiler/coco/core/include/coco/IR/Op.lst19
-rw-r--r--compiler/coco/core/include/coco/IR/OpManager.h63
-rw-r--r--compiler/coco/core/include/coco/IR/Ops.h412
-rw-r--r--compiler/coco/core/include/coco/IR/Output.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Output.h44
-rw-r--r--compiler/coco/core/include/coco/IR/OutputList.h31
-rw-r--r--compiler/coco/core/include/coco/IR/OutputManager.h39
-rw-r--r--compiler/coco/core/include/coco/IR/Padding2D.h65
-rw-r--r--compiler/coco/core/include/coco/IR/Part.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Part.h53
-rw-r--r--compiler/coco/core/include/coco/IR/Read.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Read.h55
-rw-r--r--compiler/coco/core/include/coco/IR/ReadSet.h31
-rw-r--r--compiler/coco/core/include/coco/IR/Step.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Step.h54
-rw-r--r--compiler/coco/core/include/coco/IR/Stride2D.h54
-rw-r--r--compiler/coco/core/include/coco/IR/Update.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Update.h51
-rw-r--r--compiler/coco/core/include/coco/IR/UpdateSet.h31
-rw-r--r--compiler/coco/core/include/coco/IR/Use.forward.h27
-rw-r--r--compiler/coco/core/include/coco/IR/Use.h52
-rw-r--r--compiler/coco/core/include/coco/IR/UseSet.h31
-rw-r--r--compiler/coco/core/include/coco/IR/Window2D.h55
-rw-r--r--compiler/coco/core/src/ADT/DLinkedList.test.cpp281
-rw-r--r--compiler/coco/core/src/ADT/PtrList.cpp19
-rw-r--r--compiler/coco/core/src/ADT/PtrList.test.cpp47
-rw-r--r--compiler/coco/core/src/ADT/PtrManager.test.cpp99
-rw-r--r--compiler/coco/core/src/IR.test.cpp303
-rw-r--r--compiler/coco/core/src/IR/Arg.cpp78
-rw-r--r--compiler/coco/core/src/IR/Arg.test.cpp100
-rw-r--r--compiler/coco/core/src/IR/AvgPool2D.test.cpp113
-rw-r--r--compiler/coco/core/src/IR/Bag.cpp147
-rw-r--r--compiler/coco/core/src/IR/Bag.test.cpp30
-rw-r--r--compiler/coco/core/src/IR/BagManager.cpp33
-rw-r--r--compiler/coco/core/src/IR/BagManager.test.cpp38
-rw-r--r--compiler/coco/core/src/IR/Block.cpp56
-rw-r--r--compiler/coco/core/src/IR/Block.test.cpp28
-rw-r--r--compiler/coco/core/src/IR/BlockIndex.cpp30
-rw-r--r--compiler/coco/core/src/IR/BlockIndex.test.cpp50
-rw-r--r--compiler/coco/core/src/IR/BlockManager.cpp41
-rw-r--r--compiler/coco/core/src/IR/BlockManager.test.cpp60
-rw-r--r--compiler/coco/core/src/IR/Consumer.mock.h33
-rw-r--r--compiler/coco/core/src/IR/Conv2D.cpp75
-rw-r--r--compiler/coco/core/src/IR/Conv2D.test.cpp154
-rw-r--r--compiler/coco/core/src/IR/Def.cpp43
-rw-r--r--compiler/coco/core/src/IR/Def.test.cpp82
-rw-r--r--compiler/coco/core/src/IR/Dep.cpp53
-rw-r--r--compiler/coco/core/src/IR/Dep.test.cpp73
-rw-r--r--compiler/coco/core/src/IR/ElemID.cpp25
-rw-r--r--compiler/coco/core/src/IR/ElemID.test.cpp62
-rw-r--r--compiler/coco/core/src/IR/EntityManager.cpp20
-rw-r--r--compiler/coco/core/src/IR/Eval.cpp28
-rw-r--r--compiler/coco/core/src/IR/Eval.test.cpp60
-rw-r--r--compiler/coco/core/src/IR/FeatureLayouts.cpp211
-rw-r--r--compiler/coco/core/src/IR/FeatureLayouts.test.cpp66
-rw-r--r--compiler/coco/core/src/IR/FeatureObject.cpp31
-rw-r--r--compiler/coco/core/src/IR/FeatureObject.test.cpp122
-rw-r--r--compiler/coco/core/src/IR/FeatureShape.test.cpp29
-rw-r--r--compiler/coco/core/src/IR/Input.cpp41
-rw-r--r--compiler/coco/core/src/IR/Input.test.cpp79
-rw-r--r--compiler/coco/core/src/IR/InputManager.cpp31
-rw-r--r--compiler/coco/core/src/IR/InputManager.test.cpp29
-rw-r--r--compiler/coco/core/src/IR/Instr.cpp56
-rw-r--r--compiler/coco/core/src/IR/InstrIndex.cpp30
-rw-r--r--compiler/coco/core/src/IR/InstrIndex.test.cpp50
-rw-r--r--compiler/coco/core/src/IR/InstrManager.cpp33
-rw-r--r--compiler/coco/core/src/IR/InstrManager.test.cpp52
-rw-r--r--compiler/coco/core/src/IR/KernelLayouts.cpp155
-rw-r--r--compiler/coco/core/src/IR/KernelLayouts.test.cpp126
-rw-r--r--compiler/coco/core/src/IR/KernelObject.cpp42
-rw-r--r--compiler/coco/core/src/IR/KernelObject.test.cpp78
-rw-r--r--compiler/coco/core/src/IR/Load.cpp53
-rw-r--r--compiler/coco/core/src/IR/MaxPool2D.test.cpp101
-rw-r--r--compiler/coco/core/src/IR/Module.cpp150
-rw-r--r--compiler/coco/core/src/IR/Module.test.cpp196
-rw-r--r--compiler/coco/core/src/IR/Object.cpp116
-rw-r--r--compiler/coco/core/src/IR/Object.test.cpp110
-rw-r--r--compiler/coco/core/src/IR/ObjectManager.cpp52
-rw-r--r--compiler/coco/core/src/IR/ObjectManager.test.cpp57
-rw-r--r--compiler/coco/core/src/IR/Op.cpp153
-rw-r--r--compiler/coco/core/src/IR/OpManager.cpp99
-rw-r--r--compiler/coco/core/src/IR/OpManager.test.cpp120
-rw-r--r--compiler/coco/core/src/IR/Ops.cpp22
-rw-r--r--compiler/coco/core/src/IR/Ops.test.cpp129
-rw-r--r--compiler/coco/core/src/IR/Output.cpp41
-rw-r--r--compiler/coco/core/src/IR/Output.test.cpp83
-rw-r--r--compiler/coco/core/src/IR/OutputManager.cpp31
-rw-r--r--compiler/coco/core/src/IR/OutputManager.test.cpp29
-rw-r--r--compiler/coco/core/src/IR/PadF.test.cpp89
-rw-r--r--compiler/coco/core/src/IR/Padding2D.cpp46
-rw-r--r--compiler/coco/core/src/IR/Padding2D.test.cpp51
-rw-r--r--compiler/coco/core/src/IR/Part.cpp45
-rw-r--r--compiler/coco/core/src/IR/Part.test.cpp70
-rw-r--r--compiler/coco/core/src/IR/Producer.mock.h33
-rw-r--r--compiler/coco/core/src/IR/ReLU.test.cpp85
-rw-r--r--compiler/coco/core/src/IR/ReLU6.test.cpp85
-rw-r--r--compiler/coco/core/src/IR/Read.cpp49
-rw-r--r--compiler/coco/core/src/IR/Read.test.cpp81
-rw-r--r--compiler/coco/core/src/IR/Reader.mock.h33
-rw-r--r--compiler/coco/core/src/IR/Shuffle.cpp41
-rw-r--r--compiler/coco/core/src/IR/Shuffle.test.cpp95
-rw-r--r--compiler/coco/core/src/IR/Sqrt.test.cpp85
-rw-r--r--compiler/coco/core/src/IR/Step.cpp52
-rw-r--r--compiler/coco/core/src/IR/Stride2D.cpp34
-rw-r--r--compiler/coco/core/src/IR/Stride2D.test.cpp45
-rw-r--r--compiler/coco/core/src/IR/Sub.test.cpp87
-rw-r--r--compiler/coco/core/src/IR/Update.cpp49
-rw-r--r--compiler/coco/core/src/IR/Update.test.cpp81
-rw-r--r--compiler/coco/core/src/IR/Updater.mock.h33
-rw-r--r--compiler/coco/core/src/IR/Use.cpp43
-rw-r--r--compiler/coco/core/src/IR/Use.test.cpp86
-rw-r--r--compiler/coco/core/src/IR/Window2D.test.cpp46
-rw-r--r--compiler/coco/generic/CMakeLists.txt22
-rw-r--r--compiler/coco/generic/include/coco/ADT/Span.h67
-rw-r--r--compiler/coco/generic/include/coco/IR/Data.h54
-rw-r--r--compiler/coco/generic/include/coco/IR/PlainWeightContext.h66
-rw-r--r--compiler/coco/generic/src/ADT/Span.test.cpp60
-rw-r--r--compiler/coco/generic/src/IR/Data.cpp217
-rw-r--r--compiler/coco/generic/src/IR/Data.test.cpp64
-rw-r--r--compiler/coco/requires.cmake1
-rw-r--r--compiler/cwrap/CMakeLists.txt22
-rw-r--r--compiler/cwrap/README.md23
-rw-r--r--compiler/cwrap/include/cwrap/Fildes.h57
-rw-r--r--compiler/cwrap/src/Fildes.cpp100
-rw-r--r--compiler/cwrap/src/Fildes.test.cpp97
-rw-r--r--compiler/dredd-rule-lib/CMakeLists.txt21
-rw-r--r--compiler/dredd-rule-lib/README.md112
-rwxr-xr-xcompiler/dredd-rule-lib/rule-lib.sh203
-rw-r--r--compiler/enco-intf/CMakeLists.txt2
-rw-r--r--compiler/enco-intf/cmdline/CMakeLists.txt2
-rw-r--r--compiler/enco-intf/cmdline/include/cmdline/View.h35
-rw-r--r--compiler/enco-intf/frontend/CMakeLists.txt4
-rw-r--r--compiler/enco-intf/frontend/include/enco/Bundle.h48
-rw-r--r--compiler/enco-intf/frontend/include/enco/Frontend.h34
-rw-r--r--compiler/enco/CMakeLists.txt4
-rw-r--r--compiler/enco/README.md25
-rw-r--r--compiler/enco/cli/CMakeLists.txt11
-rw-r--r--compiler/enco/cli/src/Driver.cpp221
-rw-r--r--compiler/enco/core/CMakeLists.txt35
-rw-r--r--compiler/enco/core/include/enco/Backend.h41
-rw-r--r--compiler/enco/core/src/ANN/Binder.h219
-rw-r--r--compiler/enco/core/src/ANN/Context.cpp31
-rw-r--r--compiler/enco/core/src/ANN/Context.h57
-rw-r--r--compiler/enco/core/src/ANN/Context.test.cpp73
-rw-r--r--compiler/enco/core/src/ANN/IR/DType.cpp25
-rw-r--r--compiler/enco/core/src/ANN/IR/DType.h36
-rw-r--r--compiler/enco/core/src/ANN/IR/DType.test.cpp25
-rw-r--r--compiler/enco/core/src/ANN/IR/InputList.h31
-rw-r--r--compiler/enco/core/src/ANN/IR/Module.h60
-rw-r--r--compiler/enco/core/src/ANN/IR/Module.test.cpp36
-rw-r--r--compiler/enco/core/src/ANN/IR/Operand.h82
-rw-r--r--compiler/enco/core/src/ANN/IR/Operand.test.cpp37
-rw-r--r--compiler/enco/core/src/ANN/IR/OperandID.h48
-rw-r--r--compiler/enco/core/src/ANN/IR/OperandID.test.cpp33
-rw-r--r--compiler/enco/core/src/ANN/IR/OperandInventory.cpp57
-rw-r--r--compiler/enco/core/src/ANN/IR/OperandInventory.h56
-rw-r--r--compiler/enco/core/src/ANN/IR/OperandInventory.test.cpp30
-rw-r--r--compiler/enco/core/src/ANN/IR/Operation.def17
-rw-r--r--compiler/enco/core/src/ANN/IR/Operation.h59
-rw-r--r--compiler/enco/core/src/ANN/IR/Operation.test.cpp28
-rw-r--r--compiler/enco/core/src/ANN/IR/OperationInventory.cpp32
-rw-r--r--compiler/enco/core/src/ANN/IR/OperationInventory.h48
-rw-r--r--compiler/enco/core/src/ANN/IR/OperationInventory.test.cpp40
-rw-r--r--compiler/enco/core/src/ANN/IR/OutputList.h31
-rw-r--r--compiler/enco/core/src/ANN/IR/Weight.h70
-rw-r--r--compiler/enco/core/src/ANN/IR/Weight.test.cpp53
-rw-r--r--compiler/enco/core/src/ANN/IR/WeightInventory.cpp34
-rw-r--r--compiler/enco/core/src/ANN/IR/WeightInventory.h38
-rw-r--r--compiler/enco/core/src/ANN/IR/WeightInventory.test.cpp29
-rw-r--r--compiler/enco/core/src/AsmCode.cpp33
-rw-r--r--compiler/enco/core/src/AsmCode.h51
-rw-r--r--compiler/enco/core/src/Backend.cpp178
-rw-r--r--compiler/enco/core/src/Code.h47
-rw-r--r--compiler/enco/core/src/Code.test.cpp30
-rw-r--r--compiler/enco/core/src/CodeIndex.h76
-rw-r--r--compiler/enco/core/src/CppCode.cpp553
-rw-r--r--compiler/enco/core/src/CppCode.h51
-rw-r--r--compiler/enco/core/src/CppGen/Host.cpp306
-rw-r--r--compiler/enco/core/src/CppGen/Host.h48
-rw-r--r--compiler/enco/core/src/CppGen/MemoryContext.cpp40
-rw-r--r--compiler/enco/core/src/CppGen/MemoryContext.h55
-rw-r--r--compiler/enco/core/src/CppGen/Subnet.cpp422
-rw-r--r--compiler/enco/core/src/CppGen/Subnet.h91
-rw-r--r--compiler/enco/core/src/Dims.h34
-rw-r--r--compiler/enco/core/src/IRUtils.cpp65
-rw-r--r--compiler/enco/core/src/IRUtils.h41
-rw-r--r--compiler/enco/core/src/IRValidator.cpp85
-rw-r--r--compiler/enco/core/src/IRValidator.h29
-rw-r--r--compiler/enco/core/src/IRValidator.test.cpp130
-rw-r--r--compiler/enco/core/src/Pass.h78
-rw-r--r--compiler/enco/core/src/Pass.test.cpp41
-rw-r--r--compiler/enco/core/src/Pipeline.h46
-rw-r--r--compiler/enco/core/src/Pipeline.test.cpp26
-rw-r--r--compiler/enco/core/src/Session.cpp58
-rw-r--r--compiler/enco/core/src/Session.h45
-rw-r--r--compiler/enco/core/src/String.h57
-rw-r--r--compiler/enco/core/src/Support/Debugging.cpp533
-rw-r--r--compiler/enco/core/src/Support/Debugging.h110
-rw-r--r--compiler/enco/core/src/Support/Debugging.test.cpp26
-rw-r--r--compiler/enco/core/src/Transforms/AvgPoolLowering.cpp229
-rw-r--r--compiler/enco/core/src/Transforms/AvgPoolLowering.h43
-rw-r--r--compiler/enco/core/src/Transforms/ConcatLowering.cpp196
-rw-r--r--compiler/enco/core/src/Transforms/ConcatLowering.h43
-rw-r--r--compiler/enco/core/src/Transforms/ConstantFolding.cpp442
-rw-r--r--compiler/enco/core/src/Transforms/ConstantFolding.h43
-rw-r--r--compiler/enco/core/src/Transforms/ConstantFolding.test.cpp327
-rw-r--r--compiler/enco/core/src/Transforms/CopyLowering.cpp105
-rw-r--r--compiler/enco/core/src/Transforms/CopyLowering.h43
-rw-r--r--compiler/enco/core/src/Transforms/DataLayoutConversion.cpp383
-rw-r--r--compiler/enco/core/src/Transforms/DataLayoutConversion.h43
-rw-r--r--compiler/enco/core/src/Transforms/DataLayoutConversion.test.cpp33
-rw-r--r--compiler/enco/core/src/Transforms/DeadBagElimination.cpp72
-rw-r--r--compiler/enco/core/src/Transforms/DeadBagElimination.h48
-rw-r--r--compiler/enco/core/src/Transforms/DeadObjectElimination.cpp77
-rw-r--r--compiler/enco/core/src/Transforms/DeadObjectElimination.h47
-rw-r--r--compiler/enco/core/src/Transforms/Duplicate.cpp135
-rw-r--r--compiler/enco/core/src/Transforms/Duplicate.h43
-rw-r--r--compiler/enco/core/src/Transforms/DuplicatedObjectReduction.cpp119
-rw-r--r--compiler/enco/core/src/Transforms/DuplicatedObjectReduction.h73
-rw-r--r--compiler/enco/core/src/Transforms/FeatureUnification.cpp216
-rw-r--r--compiler/enco/core/src/Transforms/FeatureUnification.h68
-rw-r--r--compiler/enco/core/src/Transforms/FreeInstrElimination.cpp65
-rw-r--r--compiler/enco/core/src/Transforms/FreeInstrElimination.h54
-rw-r--r--compiler/enco/core/src/Transforms/FreeInstrElimination.test.cpp34
-rw-r--r--compiler/enco/core/src/Transforms/FreeOpElimination.cpp59
-rw-r--r--compiler/enco/core/src/Transforms/FreeOpElimination.h54
-rw-r--r--compiler/enco/core/src/Transforms/FreeOpElimination.test.cpp34
-rw-r--r--compiler/enco/core/src/Transforms/GlobalDataGeneration.cpp181
-rw-r--r--compiler/enco/core/src/Transforms/GlobalDataGeneration.h54
-rw-r--r--compiler/enco/core/src/Transforms/IdenticalObjectReduction.cpp139
-rw-r--r--compiler/enco/core/src/Transforms/IdenticalObjectReduction.h69
-rw-r--r--compiler/enco/core/src/Transforms/IdenticalObjectReduction.test.cpp32
-rw-r--r--compiler/enco/core/src/Transforms/IndirectCopyElimination.cpp84
-rw-r--r--compiler/enco/core/src/Transforms/IndirectCopyElimination.h60
-rw-r--r--compiler/enco/core/src/Transforms/IntrinsicSelection.cpp100
-rw-r--r--compiler/enco/core/src/Transforms/IntrinsicSelection.h47
-rw-r--r--compiler/enco/core/src/Transforms/Optimizations.cpp257
-rw-r--r--compiler/enco/core/src/Transforms/Optimizations.h123
-rw-r--r--compiler/enco/core/src/Transforms/Split.cpp1233
-rw-r--r--compiler/enco/core/src/Transforms/Split.h48
-rw-r--r--compiler/enco/core/src/Usage.cpp58
-rw-r--r--compiler/enco/core/src/Usage.h34
-rw-r--r--compiler/enco/core/src/coex/IR.h109
-rw-r--r--compiler/enco/core/src/coex/IR.test.cpp38
-rw-r--r--compiler/enco/frontend/CMakeLists.txt (renamed from runtime/neurun/frontend/CMakeLists.txt)0
-rw-r--r--compiler/enco/frontend/caffe/CMakeLists.txt39
-rw-r--r--compiler/enco/frontend/caffe/src/ConcatSpec.cpp40
-rw-r--r--compiler/enco/frontend/caffe/src/ConcatSpec.h47
-rw-r--r--compiler/enco/frontend/caffe/src/ConcatSpec.test.cpp42
-rw-r--r--compiler/enco/frontend/caffe/src/Context.cpp21
-rw-r--r--compiler/enco/frontend/caffe/src/Context.h112
-rw-r--r--compiler/enco/frontend/caffe/src/Convert.cpp40
-rw-r--r--compiler/enco/frontend/caffe/src/Convert.h36
-rw-r--r--compiler/enco/frontend/caffe/src/ConvolutionSpec.cpp147
-rw-r--r--compiler/enco/frontend/caffe/src/ConvolutionSpec.h59
-rw-r--r--compiler/enco/frontend/caffe/src/ConvolutionSpec.test.cpp405
-rw-r--r--compiler/enco/frontend/caffe/src/Entry.cpp62
-rw-r--r--compiler/enco/frontend/caffe/src/Frontend.cpp135
-rw-r--r--compiler/enco/frontend/caffe/src/Frontend.h43
-rw-r--r--compiler/enco/frontend/caffe/src/GraphBuilder.cpp21
-rw-r--r--compiler/enco/frontend/caffe/src/GraphBuilder.h36
-rw-r--r--compiler/enco/frontend/caffe/src/GraphBuilderRegistry.cpp47
-rw-r--r--compiler/enco/frontend/caffe/src/GraphBuilderRegistry.h54
-rw-r--r--compiler/enco/frontend/caffe/src/IRBuilder.h180
-rw-r--r--compiler/enco/frontend/caffe/src/Importer.cpp52
-rw-r--r--compiler/enco/frontend/caffe/src/Importer.h29
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/BatchNorm.cpp254
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/BatchNorm.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Concatenation.cpp138
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Concatenation.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Convolution.cpp197
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Convolution.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Eltwise.cpp134
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Eltwise.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Input.cpp60
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Input.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Pooling.cpp138
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Pooling.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/ReLU.cpp83
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/ReLU.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Scale.cpp160
-rw-r--r--compiler/enco/frontend/caffe/src/Layer/Scale.h35
-rw-r--r--compiler/enco/frontend/caffe/src/Padding.h69
-rw-r--r--compiler/enco/frontend/caffe/src/Padding.test.cpp48
-rw-r--r--compiler/enco/frontend/caffe/src/PaddingUtils.cpp131
-rw-r--r--compiler/enco/frontend/caffe/src/PaddingUtils.h81
-rw-r--r--compiler/enco/frontend/caffe/src/PoolingSpec.cpp148
-rw-r--r--compiler/enco/frontend/caffe/src/PoolingSpec.h62
-rw-r--r--compiler/enco/frontend/caffe/src/PoolingSpec.test.cpp294
-rw-r--r--compiler/enco/frontend/caffe/src/ShapeQuery.cpp40
-rw-r--r--compiler/enco/frontend/caffe/src/ShapeQuery.h75
-rw-r--r--compiler/enco/frontend/tflite/CMakeLists.txt36
-rw-r--r--compiler/enco/frontend/tflite/schema/schema.fbs734
-rw-r--r--compiler/enco/frontend/tflite/schema/schema.meta2
-rw-r--r--compiler/enco/frontend/tflite/src/Context.cpp116
-rw-r--r--compiler/enco/frontend/tflite/src/Context.h169
-rw-r--r--compiler/enco/frontend/tflite/src/Convert.cpp57
-rw-r--r--compiler/enco/frontend/tflite/src/Convert.h43
-rw-r--r--compiler/enco/frontend/tflite/src/Entry.cpp36
-rw-r--r--compiler/enco/frontend/tflite/src/Frontend.cpp198
-rw-r--r--compiler/enco/frontend/tflite/src/Frontend.h40
-rw-r--r--compiler/enco/frontend/tflite/src/Frontend.test.cpp41
-rw-r--r--compiler/enco/frontend/tflite/src/GraphBuilder.h46
-rw-r--r--compiler/enco/frontend/tflite/src/GraphBuilderRegistry.h88
-rw-r--r--compiler/enco/frontend/tflite/src/IRBuilder.h178
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Activation.cpp96
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Activation.h37
-rw-r--r--compiler/enco/frontend/tflite/src/Op/AveragePool2D.cpp126
-rw-r--r--compiler/enco/frontend/tflite/src/Op/AveragePool2D.h39
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Concatenation.cpp252
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Concatenation.h38
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Conv2D.cpp181
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Conv2D.h39
-rw-r--r--compiler/enco/frontend/tflite/src/Op/DepthwiseConv2D.cpp230
-rw-r--r--compiler/enco/frontend/tflite/src/Op/DepthwiseConv2D.h39
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Div.cpp116
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Div.h38
-rw-r--r--compiler/enco/frontend/tflite/src/Op/MaxPool2D.cpp123
-rw-r--r--compiler/enco/frontend/tflite/src/Op/MaxPool2D.h39
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Padding.cpp105
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Padding.h42
-rw-r--r--compiler/enco/frontend/tflite/src/Op/ReLU.cpp89
-rw-r--r--compiler/enco/frontend/tflite/src/Op/ReLU.h38
-rw-r--r--compiler/enco/frontend/tflite/src/Op/ReLU6.cpp89
-rw-r--r--compiler/enco/frontend/tflite/src/Op/ReLU6.h38
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Reshape.cpp89
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Reshape.h38
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Sub.cpp112
-rw-r--r--compiler/enco/frontend/tflite/src/Op/Sub.h38
-rw-r--r--compiler/enco/frontend/tflite/src/RawModel.h29
-rw-r--r--compiler/enco/frontend/tflite/src/RawModelLoader.cpp89
-rw-r--r--compiler/enco/frontend/tflite/src/RawModelLoader.h29
-rw-r--r--compiler/enco/frontend/tflite/src/TensorBags.h65
-rw-r--r--compiler/enco/requires.cmake8
-rw-r--r--compiler/enco/test/CMakeLists.txt1
-rw-r--r--compiler/enco/test/basic/000/CMakeLists.txt26
-rw-r--r--compiler/enco/test/basic/000/enco.test.cpp81
-rw-r--r--compiler/enco/test/basic/CMakeLists.txt1
-rw-r--r--compiler/enco/test/binder.cpp188
-rw-r--r--compiler/enco/test/caffe/CMakeLists.txt141
-rwxr-xr-xcompiler/enco/test/caffe/runall.sh85
-rw-r--r--compiler/enco/test/tflite/AveragePool2D_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/AveragePool2D_000/test.recipe24
-rw-r--r--compiler/enco/test/tflite/AveragePool2D_001/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/AveragePool2D_001/test.recipe24
-rw-r--r--compiler/enco/test/tflite/CMakeLists.txt108
-rw-r--r--compiler/enco/test/tflite/Concat_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Concat_000/test.recipe28
-rw-r--r--compiler/enco/test/tflite/Concat_001/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Concat_001/test.recipe29
-rw-r--r--compiler/enco/test/tflite/Concat_002/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Concat_002/test.recipe29
-rw-r--r--compiler/enco/test/tflite/Concat_003/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Concat_003/test.recipe29
-rw-r--r--compiler/enco/test/tflite/Conv2D_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Conv2D_000/test.recipe45
-rw-r--r--compiler/enco/test/tflite/Conv2D_001/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Conv2D_001/test.recipe45
-rw-r--r--compiler/enco/test/tflite/Conv2D_002/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Conv2D_002/test.recipe46
-rw-r--r--compiler/enco/test/tflite/Conv2D_003/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Conv2D_003/test.recipe45
-rw-r--r--compiler/enco/test/tflite/Conv2D_004/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Conv2D_004/test.recipe45
-rw-r--r--compiler/enco/test/tflite/DepthwiseConv2D_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/DepthwiseConv2D_000/test.recipe48
-rw-r--r--compiler/enco/test/tflite/DepthwiseConv2D_001/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/DepthwiseConv2D_001/test.recipe46
-rw-r--r--compiler/enco/test/tflite/Div_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Div_000/test.recipe27
-rw-r--r--compiler/enco/test/tflite/MaxPool2D_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/MaxPool2D_000/test.recipe24
-rw-r--r--compiler/enco/test/tflite/ReLU6_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/ReLU6_000/test.recipe17
-rw-r--r--compiler/enco/test/tflite/ReLU_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/ReLU_000/test.recipe17
-rw-r--r--compiler/enco/test/tflite/Regression_0000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Regression_0000/test.recipe84
-rw-r--r--compiler/enco/test/tflite/Regression_0001/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Regression_0001/test.recipe50
-rw-r--r--compiler/enco/test/tflite/Regression_0002/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Regression_0002/test.recipe45
-rw-r--r--compiler/enco/test/tflite/Regression_0003/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Regression_0003/test.recipe33
-rw-r--r--compiler/enco/test/tflite/Regression_0004/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Regression_0004/test.recipe27
-rw-r--r--compiler/enco/test/tflite/Reshape_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Reshape_000/test.recipe21
-rw-r--r--compiler/enco/test/tflite/Sub_000/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/Sub_000/test.recipe27
-rw-r--r--compiler/enco/test/tflite/empty/INFERENCE0
-rw-r--r--compiler/enco/test/tflite/empty/test.recipe0
-rwxr-xr-xcompiler/enco/test/tflite/runall.sh83
-rw-r--r--compiler/encodump/CMakeLists.txt17
-rw-r--r--compiler/encodump/README.md69
-rw-r--r--compiler/encodump/requires.cmake1
-rw-r--r--compiler/encodump/src/Driver.cpp207
-rw-r--r--compiler/encodump/src/Dump.cpp371
-rw-r--r--compiler/encodump/src/Dump.h24
-rw-r--r--compiler/exo/CMakeLists.txt73
-rw-r--r--compiler/exo/README.md12
-rw-r--r--compiler/exo/include/exo/CircleExporter.h62
-rw-r--r--compiler/exo/include/exo/LoggingContext.h35
-rw-r--r--compiler/exo/include/exo/TFLExporter.h62
-rw-r--r--compiler/exo/requires.cmake6
-rw-r--r--compiler/exo/src/Check.h37
-rw-r--r--compiler/exo/src/Circle/CircleExporter.cpp49
-rw-r--r--compiler/exo/src/Circle/CircleExporterImpl.cpp181
-rw-r--r--compiler/exo/src/Circle/CircleExporterImpl.h78
-rw-r--r--compiler/exo/src/Circle/CircleExporterUtils.cpp163
-rw-r--r--compiler/exo/src/Circle/CircleExporterUtils.h120
-rw-r--r--compiler/exo/src/Circle/CircleOperationExporter.cpp1228
-rw-r--r--compiler/exo/src/Circle/CircleOperationExporter.h39
-rw-r--r--compiler/exo/src/Circle/CircleTensorExporter.cpp261
-rw-r--r--compiler/exo/src/Circle/CircleTensorExporter.h42
-rw-r--r--compiler/exo/src/Circle/CircleTypeInference.cpp85
-rw-r--r--compiler/exo/src/Circle/CircleTypeInference.h45
-rw-r--r--compiler/exo/src/Conversion/AvgPool2DConverter.cpp79
-rw-r--r--compiler/exo/src/Conversion/AvgPool2DConverter.h41
-rw-r--r--compiler/exo/src/Conversion/CanonicalNodeConverter.cpp19
-rw-r--r--compiler/exo/src/Conversion/CanonicalNodeConverter.h71
-rw-r--r--compiler/exo/src/Conversion/ConstGenConverter.cpp60
-rw-r--r--compiler/exo/src/Conversion/ConstGenConverter.h38
-rw-r--r--compiler/exo/src/Conversion/ConstGenConverter.test.cpp65
-rw-r--r--compiler/exo/src/Conversion/Conv2DConverter.cpp97
-rw-r--r--compiler/exo/src/Conversion/Conv2DConverter.h41
-rw-r--r--compiler/exo/src/Conversion/DepthwiseConv2DConverter.cpp114
-rw-r--r--compiler/exo/src/Conversion/DepthwiseConv2DConverter.h61
-rw-r--r--compiler/exo/src/Conversion/EltwiseAddConverter.cpp29
-rw-r--r--compiler/exo/src/Conversion/EltwiseAddConverter.h41
-rw-r--r--compiler/exo/src/Conversion/EltwiseBinaryConverter.h110
-rw-r--r--compiler/exo/src/Conversion/EltwiseDivConverter.cpp29
-rw-r--r--compiler/exo/src/Conversion/EltwiseDivConverter.h41
-rw-r--r--compiler/exo/src/Conversion/EltwiseMaxConverter.cpp75
-rw-r--r--compiler/exo/src/Conversion/EltwiseMaxConverter.h41
-rw-r--r--compiler/exo/src/Conversion/EltwiseMulConverter.cpp29
-rw-r--r--compiler/exo/src/Conversion/EltwiseMulConverter.h41
-rw-r--r--compiler/exo/src/Conversion/EltwiseSqrtConverter.cpp68
-rw-r--r--compiler/exo/src/Conversion/EltwiseSqrtConverter.h41
-rw-r--r--compiler/exo/src/Conversion/EltwiseSubConverter.cpp29
-rw-r--r--compiler/exo/src/Conversion/EltwiseSubConverter.h41
-rw-r--r--compiler/exo/src/Conversion/FeatureBiasAddConverter.cpp91
-rw-r--r--compiler/exo/src/Conversion/FeatureBiasAddConverter.h38
-rw-r--r--compiler/exo/src/Conversion/FeatureBiasAddConverter.test.cpp102
-rw-r--r--compiler/exo/src/Conversion/MatMulConverter.cpp103
-rw-r--r--compiler/exo/src/Conversion/MatMulConverter.h41
-rw-r--r--compiler/exo/src/Conversion/MaxPool2DConverter.cpp67
-rw-r--r--compiler/exo/src/Conversion/MaxPool2DConverter.h41
-rw-r--r--compiler/exo/src/Conversion/Relu6Converter.cpp68
-rw-r--r--compiler/exo/src/Conversion/Relu6Converter.h41
-rw-r--r--compiler/exo/src/Conversion/ReluConverter.cpp68
-rw-r--r--compiler/exo/src/Conversion/ReluConverter.h41
-rw-r--r--compiler/exo/src/Conversion/ReluConverter.test.cpp97
-rw-r--r--compiler/exo/src/Conversion/TensorBroadcastConverter.cpp189
-rw-r--r--compiler/exo/src/Conversion/TensorBroadcastConverter.h40
-rw-r--r--compiler/exo/src/Conversion/TensorConcatConverter.cpp66
-rw-r--r--compiler/exo/src/Conversion/TensorConcatConverter.h41
-rw-r--r--compiler/exo/src/Conversion/TensorReduceConverter.cpp95
-rw-r--r--compiler/exo/src/Conversion/TensorReduceConverter.h46
-rw-r--r--compiler/exo/src/Conversion/TensorTransposeConverter.cpp102
-rw-r--r--compiler/exo/src/Conversion/TensorTransposeConverter.h41
-rw-r--r--compiler/exo/src/Conversion/TransposedConv2DConverter.cpp92
-rw-r--r--compiler/exo/src/Conversion/TransposedConv2DConverter.h62
-rw-r--r--compiler/exo/src/Conversions.h46
-rw-r--r--compiler/exo/src/Convert.cpp97
-rw-r--r--compiler/exo/src/Convert.h29
-rw-r--r--compiler/exo/src/Dialect/IR/CircleDialect.cpp28
-rw-r--r--compiler/exo/src/Dialect/IR/CircleDialect.h40
-rw-r--r--compiler/exo/src/Dialect/IR/CircleDialect.test.cpp31
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNode.cpp26
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNode.h23
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodeDecl.h50
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodeImpl.h70
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodeVisitor.forward.h30
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodeVisitor.h86
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodes.cpp18
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodes.h79
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodes.lst8
-rw-r--r--compiler/exo/src/Dialect/IR/CircleNodes.test.cpp36
-rw-r--r--compiler/exo/src/Dialect/IR/CircleOpcode.h32
-rw-r--r--compiler/exo/src/Dialect/IR/FusedActFunc.h35
-rw-r--r--compiler/exo/src/Dialect/IR/NodeMixins.cpp18
-rw-r--r--compiler/exo/src/Dialect/IR/NodeMixins.h66
-rw-r--r--compiler/exo/src/Dialect/IR/TFLDialect.cpp28
-rw-r--r--compiler/exo/src/Dialect/IR/TFLDialect.h40
-rw-r--r--compiler/exo/src/Dialect/IR/TFLDialect.test.cpp31
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNode.cpp26
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNode.h23
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodeDecl.h50
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodeImpl.h70
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodeVisitor.forward.h30
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodeVisitor.h86
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodes.cpp91
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodes.h551
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodes.lst30
-rw-r--r--compiler/exo/src/Dialect/IR/TFLNodes.test.cpp159
-rw-r--r--compiler/exo/src/Dialect/IR/TFLOpcode.h32
-rw-r--r--compiler/exo/src/Dialect/Service/CircleShapeInferenceRule.cpp67
-rw-r--r--compiler/exo/src/Dialect/Service/CircleShapeInferenceRule.h33
-rw-r--r--compiler/exo/src/Dialect/Service/CircleTypeInferenceRule.cpp58
-rw-r--r--compiler/exo/src/Dialect/Service/CircleTypeInferenceRule.h36
-rw-r--r--compiler/exo/src/Dialect/Service/TFLShapeInferenceRule.cpp627
-rw-r--r--compiler/exo/src/Dialect/Service/TFLShapeInferenceRule.h33
-rw-r--r--compiler/exo/src/Dialect/Service/TFLShapeInferenceRule.test.cpp277
-rw-r--r--compiler/exo/src/Dialect/Service/TFLTypeInferenceRule.cpp141
-rw-r--r--compiler/exo/src/Dialect/Service/TFLTypeInferenceRule.h37
-rw-r--r--compiler/exo/src/Dialect/Service/TFLTypeInferenceRule.test.cpp57
-rw-r--r--compiler/exo/src/ExoFormattedGraph.cpp525
-rw-r--r--compiler/exo/src/ExoFormattedGraph.h56
-rw-r--r--compiler/exo/src/ExoOptimize.cpp74
-rw-r--r--compiler/exo/src/ExoOptimize.h34
-rw-r--r--compiler/exo/src/ExporterUtils.cpp139
-rw-r--r--compiler/exo/src/ExporterUtils.h57
-rw-r--r--compiler/exo/src/GraphBlock.cpp243
-rw-r--r--compiler/exo/src/GraphBlock.h199
-rw-r--r--compiler/exo/src/Knob.cpp122
-rw-r--r--compiler/exo/src/Knob.h51
-rw-r--r--compiler/exo/src/Knob.lst11
-rw-r--r--compiler/exo/src/Log.cpp84
-rw-r--r--compiler/exo/src/Log.h75
-rw-r--r--compiler/exo/src/LogHelper.cpp79
-rw-r--r--compiler/exo/src/LogHelper.h70
-rw-r--r--compiler/exo/src/LoggingContext.cpp40
-rw-r--r--compiler/exo/src/Pass/FoldReshapeOfConstPass.cpp116
-rw-r--r--compiler/exo/src/Pass/FoldReshapeOfConstPass.h46
-rw-r--r--compiler/exo/src/Pass/FoldTransposeOfConstPass.cpp154
-rw-r--r--compiler/exo/src/Pass/FoldTransposeOfConstPass.h46
-rw-r--r--compiler/exo/src/Pass/FuseBiasAddPass.cpp362
-rw-r--r--compiler/exo/src/Pass/FuseBiasAddPass.h61
-rw-r--r--compiler/exo/src/Pass/FuseBiasAddPass.test.cpp361
-rw-r--r--compiler/exo/src/Pass/FuseInstanceNormPass.cpp402
-rw-r--r--compiler/exo/src/Pass/FuseInstanceNormPass.h40
-rw-r--r--compiler/exo/src/Pass/FuseReluPass.cpp115
-rw-r--r--compiler/exo/src/Pass/FuseReluPass.h40
-rw-r--r--compiler/exo/src/Pass/FuseReluPass.test.cpp115
-rw-r--r--compiler/exo/src/Pass/FuseRsqrtPass.cpp95
-rw-r--r--compiler/exo/src/Pass/FuseRsqrtPass.h47
-rw-r--r--compiler/exo/src/Pass/FuseSquaredDifferencePass.cpp86
-rw-r--r--compiler/exo/src/Pass/FuseSquaredDifferencePass.h49
-rw-r--r--compiler/exo/src/Pass/MergeConcatNodesPass.cpp191
-rw-r--r--compiler/exo/src/Pass/MergeConcatNodesPass.h41
-rw-r--r--compiler/exo/src/Pass/ShapeInferencePass.cpp59
-rw-r--r--compiler/exo/src/Pass/ShapeInferencePass.h40
-rw-r--r--compiler/exo/src/Pass/TypeInferencePass.cpp57
-rw-r--r--compiler/exo/src/Pass/TypeInferencePass.h42
-rw-r--r--compiler/exo/src/Passes.cpp19
-rw-r--r--compiler/exo/src/Passes.h38
-rw-r--r--compiler/exo/src/ProgressReporter.cpp84
-rw-r--r--compiler/exo/src/ProgressReporter.h53
-rw-r--r--compiler/exo/src/ShapeInference.cpp44
-rw-r--r--compiler/exo/src/ShapeInference.h41
-rw-r--r--compiler/exo/src/TFLite/TFLExporter.cpp49
-rw-r--r--compiler/exo/src/TFLite/TFLExporterImpl.cpp179
-rw-r--r--compiler/exo/src/TFLite/TFLExporterImpl.h78
-rw-r--r--compiler/exo/src/TFLite/TFLExporterImpl.test.cpp413
-rw-r--r--compiler/exo/src/TFLite/TFLExporterUtils.cpp160
-rw-r--r--compiler/exo/src/TFLite/TFLExporterUtils.h118
-rw-r--r--compiler/exo/src/TFLite/TFLExporterUtils.test.cpp108
-rw-r--r--compiler/exo/src/TFLite/TFLOperationExporter.cpp1199
-rw-r--r--compiler/exo/src/TFLite/TFLOperationExporter.h39
-rw-r--r--compiler/exo/src/TFLite/TFLTensorExporter.cpp249
-rw-r--r--compiler/exo/src/TFLite/TFLTensorExporter.h42
-rw-r--r--compiler/exo/src/TFLite/TFLTypeInference.cpp82
-rw-r--r--compiler/exo/src/TFLite/TFLTypeInference.h42
-rw-r--r--compiler/exo/src/TFLite/TFLTypeInference.test.cpp118
-rw-r--r--compiler/exo/src/TestGraph.h315
-rw-r--r--compiler/exo/src/TestHelper.h110
-rw-r--r--compiler/fipe/CMakeLists.txt11
-rw-r--r--compiler/fipe/fipe.test.cpp73
-rw-r--r--compiler/fipe/include/fipe.h40
-rw-r--r--compiler/gen-core/CMakeLists.txt17
-rw-r--r--compiler/gen-core/README.md3
-rw-r--r--compiler/gen-core/include/gencore/HDF5Common.h65
-rw-r--r--compiler/gen-core/include/gencore/HDF5Exporter.h52
-rw-r--r--compiler/gen-core/include/gencore/HDF5Importer.h55
-rw-r--r--compiler/gen-core/requires.cmake2
-rw-r--r--compiler/gen-core/src/HDF5Common.cpp43
-rw-r--r--compiler/gen-core/src/HDF5Exporter.cpp95
-rw-r--r--compiler/gen-core/src/HDF5Importer.cpp85
-rw-r--r--compiler/gen-tf-input/CMakeLists.txt4
-rw-r--r--compiler/gen-tf-input/README.md11
-rw-r--r--compiler/gen-tf-input/src/Driver.cpp56
-rw-r--r--compiler/gen-tf-output/CMakeLists.txt3
-rw-r--r--compiler/gen-tf-output/README.md13
-rw-r--r--compiler/gen-tf-output/src/Driver.cpp54
-rw-r--r--compiler/gen-tflite-output/CMakeLists.txt3
-rw-r--r--compiler/gen-tflite-output/README.md14
-rw-r--r--compiler/gen-tflite-output/src/Driver.cpp54
-rw-r--r--compiler/hermes-std/CMakeLists.txt27
-rw-r--r--compiler/hermes-std/README.md3
-rw-r--r--compiler/hermes-std/include/hermes/ConsoleReporter.h35
-rw-r--r--compiler/hermes-std/include/hermes/EnvConfig.h55
-rw-r--r--compiler/hermes-std/requires.cmake1
-rw-r--r--compiler/hermes-std/src/ConsoleReporter.cpp32
-rw-r--r--compiler/hermes-std/src/ConsoleReporter.test.cpp46
-rw-r--r--compiler/hermes-std/src/EnvConfig.cpp44
-rw-r--r--compiler/hermes/CMakeLists.txt28
-rw-r--r--compiler/hermes/README.md3
-rw-r--r--compiler/hermes/include/hermes.h25
-rw-r--r--compiler/hermes/include/hermes/core/Config.h43
-rw-r--r--compiler/hermes/include/hermes/core/Context.h78
-rw-r--r--compiler/hermes/include/hermes/core/Message.h69
-rw-r--r--compiler/hermes/include/hermes/core/MessageBuffer.h51
-rw-r--r--compiler/hermes/include/hermes/core/MessageBus.h40
-rw-r--r--compiler/hermes/include/hermes/core/Severity.h83
-rw-r--r--compiler/hermes/include/hermes/core/Sink.h49
-rw-r--r--compiler/hermes/include/hermes/core/Source.h118
-rw-r--r--compiler/hermes/include/hermes/core/SourceSetting.h108
-rw-r--r--compiler/hermes/requires.cmake1
-rw-r--r--compiler/hermes/src/core/Context.cpp79
-rw-r--r--compiler/hermes/src/core/Context.test.cpp28
-rw-r--r--compiler/hermes/src/core/Message.cpp43
-rw-r--r--compiler/hermes/src/core/Message.test.cpp41
-rw-r--r--compiler/hermes/src/core/MessageBuffer.cpp40
-rw-r--r--compiler/hermes/src/core/MessageBuffer.test.cpp66
-rw-r--r--compiler/hermes/src/core/MessageBus.cpp19
-rw-r--r--compiler/hermes/src/core/Severity.test.cpp59
-rw-r--r--compiler/hermes/src/core/Sink.cpp19
-rw-r--r--compiler/hermes/src/core/Source.cpp70
-rw-r--r--compiler/hermes/src/core/Source.test.cpp101
-rw-r--r--compiler/hermes/src/hermes.cpp19
-rw-r--r--compiler/hermes/src/hermes.test.cpp24
-rw-r--r--compiler/i5diff/CMakeLists.txt15
-rw-r--r--compiler/i5diff/README.md20
-rw-r--r--compiler/i5diff/requires.cmake2
-rw-r--r--compiler/i5diff/src/entry.cpp313
-rw-r--r--compiler/kuma/CMakeLists.txt19
-rw-r--r--compiler/kuma/README.md7
-rw-r--r--compiler/kuma/include/kuma.h98
-rw-r--r--compiler/kuma/src/IntervalSet.cpp92
-rw-r--r--compiler/kuma/src/IntervalSet.h78
-rw-r--r--compiler/kuma/src/IntervalSet.test.cpp31
-rw-r--r--compiler/kuma/src/kuma.cpp93
-rw-r--r--compiler/kuma/src/kuma.test.cpp89
-rw-r--r--compiler/loco/CMakeLists.txt28
-rw-r--r--compiler/loco/README.md3
-rw-r--r--compiler/loco/doc/LEP_000_Dialect_Service.md116
-rw-r--r--compiler/loco/include/loco.h26
-rw-r--r--compiler/loco/include/loco/ADT/AnnotatedItem.h82
-rw-r--r--compiler/loco/include/loco/ADT/ObjectPool.h77
-rw-r--r--compiler/loco/include/loco/IR/Algorithm.h48
-rw-r--r--compiler/loco/include/loco/IR/BiasShape.h43
-rw-r--r--compiler/loco/include/loco/IR/CanonicalDialect.h45
-rw-r--r--compiler/loco/include/loco/IR/CanonicalNode.h23
-rw-r--r--compiler/loco/include/loco/IR/CanonicalNodeDecl.h50
-rw-r--r--compiler/loco/include/loco/IR/CanonicalNodeImpl.h64
-rw-r--r--compiler/loco/include/loco/IR/CanonicalNodeVisitor.forward.h29
-rw-r--r--compiler/loco/include/loco/IR/CanonicalNodeVisitor.h79
-rw-r--r--compiler/loco/include/loco/IR/CanonicalNodes.lst49
-rw-r--r--compiler/loco/include/loco/IR/CanonicalOpcode.h37
-rw-r--r--compiler/loco/include/loco/IR/DataType.h51
-rw-r--r--compiler/loco/include/loco/IR/DataTypeTraits.h86
-rw-r--r--compiler/loco/include/loco/IR/DepthwiseFilterAxis.h33
-rw-r--r--compiler/loco/include/loco/IR/DepthwiseFilterCodec.h69
-rw-r--r--compiler/loco/include/loco/IR/DepthwiseFilterIndex.h65
-rw-r--r--compiler/loco/include/loco/IR/DepthwiseFilterShape.h63
-rw-r--r--compiler/loco/include/loco/IR/Dialect.h66
-rw-r--r--compiler/loco/include/loco/IR/DialectService.h35
-rw-r--r--compiler/loco/include/loco/IR/Dimension.h85
-rw-r--r--compiler/loco/include/loco/IR/Domain.h53
-rw-r--r--compiler/loco/include/loco/IR/FeatureAxis.h33
-rw-r--r--compiler/loco/include/loco/IR/FeatureCodec.h77
-rw-r--r--compiler/loco/include/loco/IR/FeatureIndex.h65
-rw-r--r--compiler/loco/include/loco/IR/FeatureShape.h66
-rw-r--r--compiler/loco/include/loco/IR/FilterAxis.h33
-rw-r--r--compiler/loco/include/loco/IR/FilterCodec.h61
-rw-r--r--compiler/loco/include/loco/IR/FilterIndex.h65
-rw-r--r--compiler/loco/include/loco/IR/FilterShape.h69
-rw-r--r--compiler/loco/include/loco/IR/Graph.forward.h28
-rw-r--r--compiler/loco/include/loco/IR/Graph.h284
-rw-r--r--compiler/loco/include/loco/IR/GraphInputIndex.h29
-rw-r--r--compiler/loco/include/loco/IR/GraphOutputIndex.h29
-rw-r--r--compiler/loco/include/loco/IR/MatrixAxis.h31
-rw-r--r--compiler/loco/include/loco/IR/MatrixCodec.h73
-rw-r--r--compiler/loco/include/loco/IR/MatrixIndex.h55
-rw-r--r--compiler/loco/include/loco/IR/MatrixShape.h56
-rw-r--r--compiler/loco/include/loco/IR/Node.forward.h28
-rw-r--r--compiler/loco/include/loco/IR/Node.h147
-rw-r--r--compiler/loco/include/loco/IR/NodeMixins.h133
-rw-r--r--compiler/loco/include/loco/IR/NodePool.forward.h28
-rw-r--r--compiler/loco/include/loco/IR/NodePool.h62
-rw-r--r--compiler/loco/include/loco/IR/NodeShape.h70
-rw-r--r--compiler/loco/include/loco/IR/Nodes.h1123
-rw-r--r--compiler/loco/include/loco/IR/Padding2D.h65
-rw-r--r--compiler/loco/include/loco/IR/PaddingND.h56
-rw-r--r--compiler/loco/include/loco/IR/PermutingCodec.h421
-rw-r--r--compiler/loco/include/loco/IR/Stride.h50
-rw-r--r--compiler/loco/include/loco/IR/TensorAxis.h29
-rw-r--r--compiler/loco/include/loco/IR/TensorAxisSet.h42
-rw-r--r--compiler/loco/include/loco/IR/TensorIndex.h30
-rw-r--r--compiler/loco/include/loco/IR/TensorShape.h62
-rw-r--r--compiler/loco/include/loco/IR/Use.h71
-rw-r--r--compiler/loco/include/loco/IR/Verifier.h100
-rw-r--r--compiler/loco/include/loco/IR/Window.h52
-rw-r--r--compiler/loco/include/loco/Service/CanonicalShapeInferenceRule.h38
-rw-r--r--compiler/loco/include/loco/Service/MultiDialectShapeInferenceRule.h45
-rw-r--r--compiler/loco/include/loco/Service/ShapeInference.h66
-rw-r--r--compiler/loco/include/loco/Service/ShapeInferenceRule.h97
-rw-r--r--compiler/loco/include/loco/Service/TypeInference.h114
-rw-r--r--compiler/loco/src/ADT/AnnotatedItem.test.cpp75
-rw-r--r--compiler/loco/src/ADT/ObjectPool.cpp19
-rw-r--r--compiler/loco/src/IR/Algorithm.cpp121
-rw-r--r--compiler/loco/src/IR/Algorithm.test.cpp122
-rw-r--r--compiler/loco/src/IR/BiasShape.test.cpp26
-rw-r--r--compiler/loco/src/IR/CanonicalDialect.cpp67
-rw-r--r--compiler/loco/src/IR/CanonicalDialect.test.cpp29
-rw-r--r--compiler/loco/src/IR/CanonicalNode.cpp25
-rw-r--r--compiler/loco/src/IR/CanonicalNode.test.cpp72
-rw-r--r--compiler/loco/src/IR/CanonicalOpcode.cpp19
-rw-r--r--compiler/loco/src/IR/DataType.cpp19
-rw-r--r--compiler/loco/src/IR/DataTypeTraits.test.cpp29
-rw-r--r--compiler/loco/src/IR/DepthwiseFilterAxis.cpp19
-rw-r--r--compiler/loco/src/IR/DepthwiseFilterCodec.cpp19
-rw-r--r--compiler/loco/src/IR/DepthwiseFilterIndex.test.cpp67
-rw-r--r--compiler/loco/src/IR/DepthwiseFilterShape.test.cpp80
-rw-r--r--compiler/loco/src/IR/Dialect.cpp19
-rw-r--r--compiler/loco/src/IR/Dialect.test.cpp41
-rw-r--r--compiler/loco/src/IR/DialectService.cpp19
-rw-r--r--compiler/loco/src/IR/Dimension.cpp32
-rw-r--r--compiler/loco/src/IR/Dimension.test.cpp100
-rw-r--r--compiler/loco/src/IR/Domain.cpp19
-rw-r--r--compiler/loco/src/IR/FeatureAxis.cpp19
-rw-r--r--compiler/loco/src/IR/FeatureCodec.cpp19
-rw-r--r--compiler/loco/src/IR/FeatureIndex.test.cpp67
-rw-r--r--compiler/loco/src/IR/FeatureShape.test.cpp80
-rw-r--r--compiler/loco/src/IR/FilterAxis.cpp19
-rw-r--r--compiler/loco/src/IR/FilterCodec.cpp19
-rw-r--r--compiler/loco/src/IR/FilterIndex.test.cpp67
-rw-r--r--compiler/loco/src/IR/FilterShape.test.cpp80
-rw-r--r--compiler/loco/src/IR/Graph.cpp137
-rw-r--r--compiler/loco/src/IR/Graph.test.cpp218
-rw-r--r--compiler/loco/src/IR/GraphInputIndex.cpp19
-rw-r--r--compiler/loco/src/IR/GraphOutputIndex.cpp19
-rw-r--r--compiler/loco/src/IR/MatrixAxis.cpp19
-rw-r--r--compiler/loco/src/IR/MatrixCodec.cpp19
-rw-r--r--compiler/loco/src/IR/MockupNode.h58
-rw-r--r--compiler/loco/src/IR/Node.cpp88
-rw-r--r--compiler/loco/src/IR/Node.test.cpp102
-rw-r--r--compiler/loco/src/IR/NodeMixins.cpp19
-rw-r--r--compiler/loco/src/IR/NodePool.cpp31
-rw-r--r--compiler/loco/src/IR/NodeShape.cpp284
-rw-r--r--compiler/loco/src/IR/NodeShape.test.cpp125
-rw-r--r--compiler/loco/src/IR/Nodes.cpp243
-rw-r--r--compiler/loco/src/IR/Nodes.test.cpp588
-rw-r--r--compiler/loco/src/IR/Padding2D.test.cpp29
-rw-r--r--compiler/loco/src/IR/PaddingND.test.cpp32
-rw-r--r--compiler/loco/src/IR/PermutingCodec.cpp630
-rw-r--r--compiler/loco/src/IR/PermutingCodec.test.cpp553
-rw-r--r--compiler/loco/src/IR/Stride.test.cpp42
-rw-r--r--compiler/loco/src/IR/TensorAxis.cpp19
-rw-r--r--compiler/loco/src/IR/TensorAxisSet.cpp19
-rw-r--r--compiler/loco/src/IR/TensorIndex.cpp19
-rw-r--r--compiler/loco/src/IR/TensorShape.cpp39
-rw-r--r--compiler/loco/src/IR/TensorShape.test.cpp109
-rw-r--r--compiler/loco/src/IR/Use.cpp45
-rw-r--r--compiler/loco/src/IR/Use.test.cpp42
-rw-r--r--compiler/loco/src/IR/Verifier.cpp119
-rw-r--r--compiler/loco/src/IR/Verifier.test.cpp64
-rw-r--r--compiler/loco/src/IR/Window.test.cpp42
-rw-r--r--compiler/loco/src/Service/CanonicalShapeInferenceRule.cpp774
-rw-r--r--compiler/loco/src/Service/CanonicalShapeInferenceRule.test.cpp400
-rw-r--r--compiler/loco/src/Service/GraphBuilder.h547
-rw-r--r--compiler/loco/src/Service/GraphBuilder.test.cpp47
-rw-r--r--compiler/loco/src/Service/GraphTestcase.h541
-rw-r--r--compiler/loco/src/Service/MultiDialectShapeInferenceRule.cpp67
-rw-r--r--compiler/loco/src/Service/MultiDialectShapeInferenceRule.test.cpp134
-rw-r--r--compiler/loco/src/Service/ShapeInference.cpp105
-rw-r--r--compiler/loco/src/Service/ShapeInference.test.cpp87
-rw-r--r--compiler/loco/src/Service/ShapeInferenceRule.cpp31
-rw-r--r--compiler/loco/src/Service/TypeInference.cpp228
-rw-r--r--compiler/loco/src/Service/TypeInference.test.cpp282
-rw-r--r--compiler/loco/src/loco.test.cpp108
-rw-r--r--compiler/loco/src/tensorflow.test.cpp386
-rw-r--r--compiler/locoex-customop/CMakeLists.txt18
-rw-r--r--compiler/locoex-customop/README.md9
-rw-r--r--compiler/locoex-customop/include/locoex/COpAttrTypes.h101
-rw-r--r--compiler/locoex-customop/include/locoex/COpCall.h71
-rw-r--r--compiler/locoex-customop/include/locoex/COpDialect.h43
-rw-r--r--compiler/locoex-customop/include/locoex/COpNode.h37
-rw-r--r--compiler/locoex-customop/include/locoex/Service/COpFormattedGraph.h47
-rw-r--r--compiler/locoex-customop/include/locoex/Service/COpShapeInferenceRule.h41
-rw-r--r--compiler/locoex-customop/include/locoex/Service/COpTypeInference.h36
-rw-r--r--compiler/locoex-customop/include/locoex/VariadicArityNode.h77
-rw-r--r--compiler/locoex-customop/requires.cmake4
-rw-r--r--compiler/locoex-customop/src/COpCall.cpp67
-rw-r--r--compiler/locoex-customop/src/COpCall.test.cpp90
-rw-r--r--compiler/locoex-customop/src/COpDialect.cpp28
-rw-r--r--compiler/locoex-customop/src/COpDialect.test.cpp29
-rw-r--r--compiler/locoex-customop/src/COpNode.cpp25
-rw-r--r--compiler/locoex-customop/src/Service/COpFormattedGraph.cpp66
-rw-r--r--compiler/locoex-customop/src/Service/COpShapeInferenceRule.cpp59
-rw-r--r--compiler/locoex-customop/src/Service/COpShapeInferenceRule.test.cpp54
-rw-r--r--compiler/locoex-customop/src/Service/COpTypeInference.cpp47
-rw-r--r--compiler/locoex-customop/src/Service/COpTypeInference.test.cpp63
-rw-r--r--compiler/locoex-customop/src/VariadicArityNode.test.cpp72
-rw-r--r--compiler/locomotiv/CMakeLists.txt29
-rw-r--r--compiler/locomotiv/README.md90
-rw-r--r--compiler/locomotiv/include/locomotiv/NodeData.h61
-rw-r--r--compiler/locomotiv/include/locomotiv/Session.h108
-rw-r--r--compiler/locomotiv/requires.cmake2
-rw-r--r--compiler/locomotiv/src/Node.lst40
-rw-r--r--compiler/locomotiv/src/Node/AvgPool2D.cpp179
-rw-r--r--compiler/locomotiv/src/Node/AvgPool2D.test.cpp176
-rw-r--r--compiler/locomotiv/src/Node/BiasAdd.cpp121
-rw-r--r--compiler/locomotiv/src/Node/BiasAdd.test.cpp204
-rw-r--r--compiler/locomotiv/src/Node/BiasEncode.cpp63
-rw-r--r--compiler/locomotiv/src/Node/BiasEncode.test.cpp95
-rw-r--r--compiler/locomotiv/src/Node/ConstGen.cpp116
-rw-r--r--compiler/locomotiv/src/Node/ConstGen.test.cpp100
-rw-r--r--compiler/locomotiv/src/Node/Conv2D.cpp179
-rw-r--r--compiler/locomotiv/src/Node/Conv2D.test.cpp231
-rw-r--r--compiler/locomotiv/src/Node/DepthwiseConv2D.cpp185
-rw-r--r--compiler/locomotiv/src/Node/DepthwiseConv2D.test.cpp164
-rw-r--r--compiler/locomotiv/src/Node/DepthwiseFilterEncode.cpp113
-rw-r--r--compiler/locomotiv/src/Node/DepthwiseFilterEncode.test.cpp90
-rw-r--r--compiler/locomotiv/src/Node/EltwiseAdd.cpp34
-rw-r--r--compiler/locomotiv/src/Node/EltwiseAdd.test.cpp121
-rw-r--r--compiler/locomotiv/src/Node/EltwiseDiv.cpp34
-rw-r--r--compiler/locomotiv/src/Node/EltwiseDiv.test.cpp121
-rw-r--r--compiler/locomotiv/src/Node/EltwiseMax.cpp36
-rw-r--r--compiler/locomotiv/src/Node/EltwiseMax.test.cpp121
-rw-r--r--compiler/locomotiv/src/Node/EltwiseMul.cpp34
-rw-r--r--compiler/locomotiv/src/Node/EltwiseMul.test.cpp124
-rw-r--r--compiler/locomotiv/src/Node/EltwiseSqrt.cpp43
-rw-r--r--compiler/locomotiv/src/Node/EltwiseSqrt.test.cpp69
-rw-r--r--compiler/locomotiv/src/Node/EltwiseSub.cpp34
-rw-r--r--compiler/locomotiv/src/Node/EltwiseSub.test.cpp121
-rw-r--r--compiler/locomotiv/src/Node/FeatureCodec.test.cpp223
-rw-r--r--compiler/locomotiv/src/Node/FeatureDecode.cpp112
-rw-r--r--compiler/locomotiv/src/Node/FeatureEncode.cpp114
-rw-r--r--compiler/locomotiv/src/Node/FilterEncode.cpp114
-rw-r--r--compiler/locomotiv/src/Node/FilterEncode.test.cpp144
-rw-r--r--compiler/locomotiv/src/Node/Forward.cpp62
-rw-r--r--compiler/locomotiv/src/Node/Forward.test.cpp88
-rw-r--r--compiler/locomotiv/src/Node/MatMul.cpp133
-rw-r--r--compiler/locomotiv/src/Node/MatMul.test.cpp188
-rw-r--r--compiler/locomotiv/src/Node/MatrixCodec.test.cpp207
-rw-r--r--compiler/locomotiv/src/Node/MatrixDecode.cpp109
-rw-r--r--compiler/locomotiv/src/Node/MatrixEncode.cpp112
-rw-r--r--compiler/locomotiv/src/Node/MaxPool2D.cpp167
-rw-r--r--compiler/locomotiv/src/Node/MaxPool2D.test.cpp159
-rw-r--r--compiler/locomotiv/src/Node/Pull.cpp72
-rw-r--r--compiler/locomotiv/src/Node/Pull.test.cpp61
-rw-r--r--compiler/locomotiv/src/Node/Push.cpp61
-rw-r--r--compiler/locomotiv/src/Node/Push.test.cpp88
-rw-r--r--compiler/locomotiv/src/Node/ReLU.cpp41
-rw-r--r--compiler/locomotiv/src/Node/ReLU.test.cpp62
-rw-r--r--compiler/locomotiv/src/Node/ReLU6.cpp96
-rw-r--r--compiler/locomotiv/src/Node/ReLU6.test.cpp66
-rw-r--r--compiler/locomotiv/src/Node/Reshape.cpp90
-rw-r--r--compiler/locomotiv/src/Node/Reshape.test.cpp67
-rw-r--r--compiler/locomotiv/src/Node/Softmax.cpp122
-rw-r--r--compiler/locomotiv/src/Node/Softmax.test.cpp68
-rw-r--r--compiler/locomotiv/src/Node/Tanh.cpp41
-rw-r--r--compiler/locomotiv/src/Node/Tanh.test.cpp64
-rw-r--r--compiler/locomotiv/src/Node/TensorBroadcast.cpp106
-rw-r--r--compiler/locomotiv/src/Node/TensorBroadcast.test.cpp63
-rw-r--r--compiler/locomotiv/src/Node/TensorConcat.cpp113
-rw-r--r--compiler/locomotiv/src/Node/TensorConcat.test.cpp128
-rw-r--r--compiler/locomotiv/src/Node/TensorConstantPad.cpp113
-rw-r--r--compiler/locomotiv/src/Node/TensorConstantPad.test.cpp218
-rw-r--r--compiler/locomotiv/src/Node/TensorReduce.cpp153
-rw-r--r--compiler/locomotiv/src/Node/TensorReduce.test.cpp104
-rw-r--r--compiler/locomotiv/src/Node/TransposedConv2D.cpp189
-rw-r--r--compiler/locomotiv/src/Node/TransposedConv2D.test.cpp144
-rw-r--r--compiler/locomotiv/src/NodeData.cpp33
-rw-r--r--compiler/locomotiv/src/NodeData.test.cpp54
-rw-r--r--compiler/locomotiv/src/NodeDataImpl.cpp77
-rw-r--r--compiler/locomotiv/src/NodeDataImpl.h66
-rw-r--r--compiler/locomotiv/src/NodeDataImpl.test.cpp58
-rw-r--r--compiler/locomotiv/src/NodeDomain.cpp53
-rw-r--r--compiler/locomotiv/src/NodeDomain.h37
-rw-r--r--compiler/locomotiv/src/NodeDomain.test.cpp37
-rw-r--r--compiler/locomotiv/src/NodeExecution.cpp158
-rw-r--r--compiler/locomotiv/src/NodeExecution.h83
-rw-r--r--compiler/locomotiv/src/Session.cpp93
-rw-r--r--compiler/locomotiv/src/Session.test.cpp379
-rw-r--r--compiler/locomotiv/src/UserData.cpp63
-rw-r--r--compiler/locomotiv/src/UserData.h31
-rw-r--r--compiler/locomotiv/src/Validation.h34
-rw-r--r--compiler/locop/CMakeLists.txt27
-rw-r--r--compiler/locop/README.md3
-rw-r--r--compiler/locop/include/locop/CanonicalNodeSummaryBuilder.h45
-rw-r--r--compiler/locop/include/locop/FormattedGraph.h89
-rw-r--r--compiler/locop/include/locop/FormattedTensorShape.h76
-rw-r--r--compiler/locop/include/locop/GenericNodeSummaryBuilder.h45
-rw-r--r--compiler/locop/include/locop/Interfaces.h43
-rw-r--r--compiler/locop/include/locop/NodeSummary.h114
-rw-r--r--compiler/locop/include/locop/NodeSummaryBuilder.h47
-rw-r--r--compiler/locop/include/locop/SymbolTable.h41
-rw-r--r--compiler/locop/src/CanonicalNodeSummaryBuilder.cpp297
-rw-r--r--compiler/locop/src/ExampleGraph.h69
-rw-r--r--compiler/locop/src/FormattedGraph.cpp390
-rw-r--r--compiler/locop/src/FormattedGraph.test.cpp143
-rw-r--r--compiler/locop/src/FormattedTensorShape.cpp68
-rw-r--r--compiler/locop/src/FormattedTensorShape.test.cpp33
-rw-r--r--compiler/locop/src/GenericNodeSummaryBuilder.cpp38
-rw-r--r--compiler/locop/src/GenericNodeSummaryBuilder.test.cpp58
-rw-r--r--compiler/locop/src/Interfaces.cpp28
-rw-r--r--compiler/locop/src/NodeSummary.cpp41
-rw-r--r--compiler/locop/src/NodeSummaryBuilder.cpp21
-rw-r--r--compiler/logo-core/CMakeLists.txt19
-rw-r--r--compiler/logo-core/README.md3
-rw-r--r--compiler/logo-core/include/logo/Pass.h48
-rw-r--r--compiler/logo-core/include/logo/Phase.h192
-rw-r--r--compiler/logo-core/requires.cmake1
-rw-r--r--compiler/logo-core/src/Pass.cpp32
-rw-r--r--compiler/logo-core/src/Pass.test.cpp46
-rw-r--r--compiler/logo-core/src/Phase.cpp71
-rw-r--r--compiler/logo/CMakeLists.txt23
-rw-r--r--compiler/logo/README.md3
-rw-r--r--compiler/logo/include/logo/ConstantFoldingPass.h41
-rw-r--r--compiler/logo/include/logo/Passes.h30
-rw-r--r--compiler/logo/include/logo/RemoveDeadNodePass.h34
-rw-r--r--compiler/logo/include/logo/RemoveForwardNodePass.h46
-rw-r--r--compiler/logo/include/logo/ReorderDecodePass.h51
-rw-r--r--compiler/logo/include/logo/ResolveDuplicateReshapePass.h41
-rw-r--r--compiler/logo/include/logo/ResolveRedundantReshapePass.h44
-rw-r--r--compiler/logo/include/logo/SimplifyDomainConversionPass.h47
-rw-r--r--compiler/logo/requires.cmake4
-rw-r--r--compiler/logo/src/Passes/ConstantFoldingPass.cpp174
-rw-r--r--compiler/logo/src/Passes/ConstantFoldingPass.test.cpp179
-rw-r--r--compiler/logo/src/Passes/RemoveDeadNodePass.cpp77
-rw-r--r--compiler/logo/src/Passes/RemoveForwardNodePass.cpp64
-rw-r--r--compiler/logo/src/Passes/ReorderDecodePass.cpp311
-rw-r--r--compiler/logo/src/Passes/ResolveDuplicateReshapePass.cpp108
-rw-r--r--compiler/logo/src/Passes/ResolveRedundantReshapePass.cpp103
-rw-r--r--compiler/logo/src/Passes/SimplifyDomainConversionPass.cpp445
-rw-r--r--compiler/logo/src/Passes/SimplifyDomainConversionPass.test.cpp234
-rw-r--r--compiler/logo/src/TestHelper.h44
-rw-r--r--compiler/luci/CMakeLists.txt10
-rw-r--r--compiler/luci/README.md3
-rw-r--r--compiler/luci/export/CMakeLists.txt29
-rw-r--r--compiler/luci/export/README.md3
-rw-r--r--compiler/luci/export/include/luci/CircleExporter.h64
-rw-r--r--compiler/luci/export/src/Check.h35
-rw-r--r--compiler/luci/export/src/CircleExporter.cpp64
-rw-r--r--compiler/luci/export/src/CircleExporterImpl.cpp266
-rw-r--r--compiler/luci/export/src/CircleExporterImpl.h82
-rw-r--r--compiler/luci/export/src/CircleExporterUtils.cpp169
-rw-r--r--compiler/luci/export/src/CircleExporterUtils.h51
-rw-r--r--compiler/luci/export/src/CircleOperationExporter.cpp643
-rw-r--r--compiler/luci/export/src/CircleOperationExporter.h37
-rw-r--r--compiler/luci/export/src/CircleTensorExporter.cpp264
-rw-r--r--compiler/luci/export/src/CircleTensorExporter.h44
-rw-r--r--compiler/luci/export/src/Optimize.cpp48
-rw-r--r--compiler/luci/export/src/Optimize.h33
-rw-r--r--compiler/luci/export/src/ProgressReporter.cpp84
-rw-r--r--compiler/luci/export/src/ProgressReporter.h53
-rw-r--r--compiler/luci/export/src/SerializedData.h95
-rw-r--r--compiler/luci/import/CMakeLists.txt26
-rw-r--r--compiler/luci/import/README.md3
-rw-r--r--compiler/luci/import/include/luci/Import/CircleReader.h87
-rw-r--r--compiler/luci/import/include/luci/Import/GraphBuilder.h56
-rw-r--r--compiler/luci/import/include/luci/Import/GraphBuilderContext.h79
-rw-r--r--compiler/luci/import/include/luci/Import/GraphBuilderRegistry.h85
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes.h48
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleAbs.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleAdd.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleArgMax.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleAveragePool2D.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleBatchToSpaceND.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleConcatenation.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleConst.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleConv2D.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleCos.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleDepthwiseConv2D.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleDiv.h36
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleEqual.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleExp.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleFullyConnected.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleLogicalNot.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleLogicalOr.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleMaxPool2D.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleMean.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleMul.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CirclePack.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CirclePad.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleRelu.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleReshape.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleRsqrt.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleSoftmax.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleSub.h37
-rw-r--r--compiler/luci/import/include/luci/Import/Nodes/CircleTranspose.h37
-rw-r--r--compiler/luci/import/include/luci/Importer.h54
-rw-r--r--compiler/luci/import/src/CircleReader.cpp211
-rw-r--r--compiler/luci/import/src/GraphBuilder.cpp61
-rw-r--r--compiler/luci/import/src/GraphBuilderContext.cpp47
-rw-r--r--compiler/luci/import/src/GraphBuilderRegistry.cpp163
-rw-r--r--compiler/luci/import/src/Importer.cpp253
-rw-r--r--compiler/luci/import/src/Importer.test.cpp23
-rw-r--r--compiler/luci/import/src/Nodes/CircleAbs.cpp44
-rw-r--r--compiler/luci/import/src/Nodes/CircleAdd.cpp48
-rw-r--r--compiler/luci/import/src/Nodes/CircleArgMax.cpp48
-rw-r--r--compiler/luci/import/src/Nodes/CircleAveragePool2D.cpp50
-rw-r--r--compiler/luci/import/src/Nodes/CircleBatchToSpaceND.cpp80
-rw-r--r--compiler/luci/import/src/Nodes/CircleConcatenation.cpp52
-rw-r--r--compiler/luci/import/src/Nodes/CircleConst.cpp110
-rw-r--r--compiler/luci/import/src/Nodes/CircleConv2D.cpp58
-rw-r--r--compiler/luci/import/src/Nodes/CircleCos.cpp46
-rw-r--r--compiler/luci/import/src/Nodes/CircleDepthwiseConv2D.cpp60
-rw-r--r--compiler/luci/import/src/Nodes/CircleDiv.cpp49
-rw-r--r--compiler/luci/import/src/Nodes/CircleEqual.cpp51
-rw-r--r--compiler/luci/import/src/Nodes/CircleExp.cpp59
-rw-r--r--compiler/luci/import/src/Nodes/CircleFullyConnected.cpp56
-rw-r--r--compiler/luci/import/src/Nodes/CircleLogicalNot.cpp51
-rw-r--r--compiler/luci/import/src/Nodes/CircleLogicalOr.cpp55
-rw-r--r--compiler/luci/import/src/Nodes/CircleMaxPool2D.cpp52
-rw-r--r--compiler/luci/import/src/Nodes/CircleMean.cpp46
-rw-r--r--compiler/luci/import/src/Nodes/CircleMul.cpp49
-rw-r--r--compiler/luci/import/src/Nodes/CirclePack.cpp61
-rw-r--r--compiler/luci/import/src/Nodes/CirclePad.cpp50
-rw-r--r--compiler/luci/import/src/Nodes/CircleRelu.cpp47
-rw-r--r--compiler/luci/import/src/Nodes/CircleReshape.cpp82
-rw-r--r--compiler/luci/import/src/Nodes/CircleRsqrt.cpp60
-rw-r--r--compiler/luci/import/src/Nodes/CircleSoftmax.cpp49
-rw-r--r--compiler/luci/import/src/Nodes/CircleSub.cpp51
-rw-r--r--compiler/luci/import/src/Nodes/CircleTranspose.cpp51
-rw-r--r--compiler/luci/lang/CMakeLists.txt22
-rw-r--r--compiler/luci/lang/README.md3
-rw-r--r--compiler/luci/lang/include/luci/IR/AttrFilter.h43
-rw-r--r--compiler/luci/lang/include/luci/IR/AttrFusedActFunc.h36
-rw-r--r--compiler/luci/lang/include/luci/IR/AttrPadding.h33
-rw-r--r--compiler/luci/lang/include/luci/IR/AttrStride.h43
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleDialect.h43
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNode.h23
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNodeDecl.h68
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNodeImpl.h70
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNodeVisitor.forward.h30
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNodeVisitor.h87
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNodes.h73
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleNodes.lst52
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleOpcode.h32
-rw-r--r--compiler/luci/lang/include/luci/IR/CircleQuantParam.h36
-rw-r--r--compiler/luci/lang/include/luci/IR/LuciNodeMixins.h104
-rw-r--r--compiler/luci/lang/include/luci/IR/Module.h70
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleAbs.h40
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleAdd.h45
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleArgMax.h50
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleAveragePool2D.h63
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleBatchToSpaceND.h47
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleConcatenation.h72
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleConst.h57
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleConv2D.h62
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleCos.h40
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleDepthwiseConv2D.h68
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleDiv.h51
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleEqual.h43
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleExp.h40
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleFullyConnected.h50
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleGather.h51
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleInput.h55
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleInstanceNorm.h56
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleLogicalNot.h40
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleLogicalOr.h43
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleMaxPool2D.h62
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleMaximum.h44
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleMean.h51
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleMul.h45
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleOutput.h55
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CirclePack.h67
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CirclePad.h46
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleRelu.h44
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleRelu6.h44
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleReshape.h69
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleRsqrt.h44
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleSoftmax.h47
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleSqrt.h44
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleSquaredDifference.h48
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleSub.h48
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleTranspose.h50
-rw-r--r--compiler/luci/lang/include/luci/IR/Nodes/CircleTransposeConv.h64
-rw-r--r--compiler/luci/lang/include/luci/IR/VariadicArityNode.h77
-rw-r--r--compiler/luci/lang/src/Check.h35
-rw-r--r--compiler/luci/lang/src/CircleDialect.cpp88
-rw-r--r--compiler/luci/lang/src/CircleDialect.test.cpp34
-rw-r--r--compiler/luci/lang/src/CircleNode.cpp25
-rw-r--r--compiler/luci/lang/src/CircleNodes.cpp50
-rw-r--r--compiler/luci/lang/src/LuciNodeMixins.cpp18
-rw-r--r--compiler/luci/lang/src/Module.cpp46
-rw-r--r--compiler/luci/lang/src/Module.test.cpp73
-rw-r--r--compiler/luci/lang/src/Nodes/CircleAbs.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleAdd.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleArgMax.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleBatchToSpaceND.test.cpp33
-rw-r--r--compiler/luci/lang/src/Nodes/CircleConcatenation.test.cpp35
-rw-r--r--compiler/luci/lang/src/Nodes/CircleConst.cpp79
-rw-r--r--compiler/luci/lang/src/Nodes/CircleConv2D.test.cpp33
-rw-r--r--compiler/luci/lang/src/Nodes/CircleCos.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleDepthwiseConv2D.test.cpp38
-rw-r--r--compiler/luci/lang/src/Nodes/CircleDiv.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleEqual.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleExp.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleFullyConnected.test.cpp34
-rw-r--r--compiler/luci/lang/src/Nodes/CircleGather.test.cpp33
-rw-r--r--compiler/luci/lang/src/Nodes/CircleInput.cpp38
-rw-r--r--compiler/luci/lang/src/Nodes/CircleInstanceNorm.test.cpp35
-rw-r--r--compiler/luci/lang/src/Nodes/CircleLogicalNot.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleLogicalOr.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleMaxPool2D.test.cpp33
-rw-r--r--compiler/luci/lang/src/Nodes/CircleMaximum.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleMul.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleOutput.cpp38
-rw-r--r--compiler/luci/lang/src/Nodes/CirclePack.test.cpp35
-rw-r--r--compiler/luci/lang/src/Nodes/CirclePad.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleRelu.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleRelu6.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleReshape.test.cpp48
-rw-r--r--compiler/luci/lang/src/Nodes/CircleRsqrt.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleSoftmax.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleSqrt.test.cpp31
-rw-r--r--compiler/luci/lang/src/Nodes/CircleSquaredDifference.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleSub.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleTranspose.test.cpp32
-rw-r--r--compiler/luci/lang/src/Nodes/CircleTransposeConv.test.cpp33
-rw-r--r--compiler/luci/log/CMakeLists.txt9
-rw-r--r--compiler/luci/log/README.md3
-rw-r--r--compiler/luci/log/include/luci/Log.h75
-rw-r--r--compiler/luci/log/include/luci/LoggingContext.h35
-rw-r--r--compiler/luci/log/src/Log.cpp87
-rw-r--r--compiler/luci/log/src/LoggingContext.cpp41
-rw-r--r--compiler/luci/logex/CMakeLists.txt13
-rw-r--r--compiler/luci/logex/README.md3
-rw-r--r--compiler/luci/logex/include/luci/FormattedGraph.h56
-rw-r--r--compiler/luci/logex/include/luci/LogHelper.h36
-rw-r--r--compiler/luci/logex/src/FormattedGraph.cpp606
-rw-r--r--compiler/luci/logex/src/LogHelper.cpp29
-rw-r--r--compiler/luci/pass/CMakeLists.txt29
-rw-r--r--compiler/luci/pass/README.md3
-rw-r--r--compiler/luci/pass/include/luci/CircleOptimizer.h55
-rw-r--r--compiler/luci/pass/include/luci/Pass/FuseInstanceNormPass.h40
-rw-r--r--compiler/luci/pass/include/luci/Pass/ShapeInferencePass.h41
-rw-r--r--compiler/luci/pass/include/luci/Pass/TypeInferencePass.h42
-rw-r--r--compiler/luci/pass/src/CircleOptimizer.cpp96
-rw-r--r--compiler/luci/pass/src/FuseInstanceNormPass.cpp401
-rw-r--r--compiler/luci/pass/src/ProgressReporter.cpp84
-rw-r--r--compiler/luci/pass/src/ProgressReporter.h53
-rw-r--r--compiler/luci/pass/src/ShapeInferencePass.cpp44
-rw-r--r--compiler/luci/pass/src/TypeInferencePass.cpp42
-rw-r--r--compiler/luci/requires.cmake9
-rw-r--r--compiler/luci/service/CMakeLists.txt25
-rw-r--r--compiler/luci/service/README.md3
-rw-r--r--compiler/luci/service/include/luci/Service/CircleShapeInference.h41
-rw-r--r--compiler/luci/service/include/luci/Service/CircleShapeInferenceRule.h33
-rw-r--r--compiler/luci/service/include/luci/Service/CircleTypeInference.h42
-rw-r--r--compiler/luci/service/include/luci/Service/CircleTypeInferenceRule.h36
-rw-r--r--compiler/luci/service/include/luci/Service/ShapeDescription.h59
-rw-r--r--compiler/luci/service/include/luci/Service/Validate.h29
-rw-r--r--compiler/luci/service/src/Check.h35
-rw-r--r--compiler/luci/service/src/CircleShapeInference.cpp37
-rw-r--r--compiler/luci/service/src/CircleShapeInferenceRule.cpp907
-rw-r--r--compiler/luci/service/src/CircleShapeInferenceRule.test.cpp282
-rw-r--r--compiler/luci/service/src/CircleTypeInference.cpp78
-rw-r--r--compiler/luci/service/src/CircleTypeInferenceRule.cpp202
-rw-r--r--compiler/luci/service/src/CircleTypeInferenceRule.test.cpp57
-rw-r--r--compiler/luci/service/src/GraphBlock.h201
-rw-r--r--compiler/luci/service/src/GraphBlock.test.cpp246
-rw-r--r--compiler/luci/service/src/ShapeDescription.cpp139
-rw-r--r--compiler/luci/service/src/TestGraph.h315
-rw-r--r--compiler/luci/service/src/Validate.cpp109
-rw-r--r--compiler/luci/tester/CMakeLists.txt22
-rw-r--r--compiler/luci/tester/src/Model.cpp62
-rw-r--r--compiler/luci/tester/src/Model.h27
-rw-r--r--compiler/luci/tester/src/ReadTester.cpp92
-rw-r--r--compiler/luci/tester/src/WriteTester.cpp142
-rw-r--r--compiler/luci/tests/.gitignore1
-rw-r--r--compiler/luci/tests/CMakeLists.txt97
-rwxr-xr-xcompiler/luci/tests/readverify.sh53
-rw-r--r--compiler/luci/tests/test.lst91
-rwxr-xr-xcompiler/luci/tests/writeverify.sh53
-rw-r--r--compiler/mio-circle/CMakeLists.txt28
-rw-r--r--compiler/mio-circle/README.md3
-rw-r--r--compiler/mio-circle/example.cpp41
-rw-r--r--compiler/mio-tf/CMakeLists.txt48
-rw-r--r--compiler/mio-tf/README.md3
-rw-r--r--compiler/mio-tf/src/mio_tf.test.cpp27
-rw-r--r--compiler/mio-tflite/CMakeLists.txt37
-rw-r--r--compiler/mio-tflite/README.md3
-rw-r--r--compiler/mio-tflite/example.cpp41
-rw-r--r--compiler/mir-caffe-importer/CMakeLists.txt17
-rw-r--r--compiler/mir-caffe-importer/caffe_importer.cpp439
-rw-r--r--compiler/mir-caffe-importer/caffe_importer.h35
-rw-r--r--compiler/mir-caffe-importer/caffe_op_creator.cpp834
-rw-r--r--compiler/mir-caffe-importer/caffe_op_creator.h146
-rw-r--r--compiler/mir-caffe-importer/caffe_op_types.h89
-rw-r--r--compiler/mir-caffe-importer/requires.cmake1
-rw-r--r--compiler/mir-caffe2-importer/CMakeLists.txt29
-rw-r--r--compiler/mir-caffe2-importer/caffe2_importer.cpp343
-rw-r--r--compiler/mir-caffe2-importer/caffe2_importer.h34
-rw-r--r--compiler/mir-caffe2-importer/caffe2_op_creator.cpp547
-rw-r--r--compiler/mir-caffe2-importer/caffe2_op_creator.h117
-rw-r--r--compiler/mir-caffe2-importer/caffe2_op_types.h48
-rw-r--r--compiler/mir-caffe2-importer/caffe2_proto_helper.cpp62
-rw-r--r--compiler/mir-caffe2-importer/caffe2_proto_helper.h40
-rw-r--r--compiler/mir-caffe2-importer/requires.cmake1
-rw-r--r--compiler/mir-interpreter/CMakeLists.txt4
-rw-r--r--compiler/mir-interpreter/include/MirInterpreter.h101
-rw-r--r--compiler/mir-interpreter/requires.cmake1
-rw-r--r--compiler/mir-interpreter/src/MirInterpreter.cpp420
-rw-r--r--compiler/mir-interpreter/src/ops/Abs.cpp55
-rw-r--r--compiler/mir-interpreter/src/ops/Abs.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Add.cpp130
-rw-r--r--compiler/mir-interpreter/src/ops/Add.h29
-rw-r--r--compiler/mir-interpreter/src/ops/AvgPool2D.cpp173
-rw-r--r--compiler/mir-interpreter/src/ops/AvgPool2D.h31
-rw-r--r--compiler/mir-interpreter/src/ops/CappedReLU.cpp82
-rw-r--r--compiler/mir-interpreter/src/ops/CappedReLU.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Common.cpp37
-rw-r--r--compiler/mir-interpreter/src/ops/Common.h65
-rw-r--r--compiler/mir-interpreter/src/ops/Concat.cpp172
-rw-r--r--compiler/mir-interpreter/src/ops/Concat.h30
-rw-r--r--compiler/mir-interpreter/src/ops/Conv2D.cpp261
-rw-r--r--compiler/mir-interpreter/src/ops/Conv2D.h32
-rw-r--r--compiler/mir-interpreter/src/ops/DeConv2D.cpp122
-rw-r--r--compiler/mir-interpreter/src/ops/DeConv2D.h41
-rw-r--r--compiler/mir-interpreter/src/ops/DepthwiseConv2D.cpp225
-rw-r--r--compiler/mir-interpreter/src/ops/DepthwiseConv2D.h32
-rw-r--r--compiler/mir-interpreter/src/ops/Div.cpp62
-rw-r--r--compiler/mir-interpreter/src/ops/Div.h29
-rw-r--r--compiler/mir-interpreter/src/ops/ELU.cpp51
-rw-r--r--compiler/mir-interpreter/src/ops/ELU.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Equal.cpp58
-rw-r--r--compiler/mir-interpreter/src/ops/Equal.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Fill.h48
-rw-r--r--compiler/mir-interpreter/src/ops/FullyConnected.cpp214
-rw-r--r--compiler/mir-interpreter/src/ops/FullyConnected.h32
-rw-r--r--compiler/mir-interpreter/src/ops/Gather.cpp92
-rw-r--r--compiler/mir-interpreter/src/ops/Gather.h31
-rw-r--r--compiler/mir-interpreter/src/ops/Greater.cpp57
-rw-r--r--compiler/mir-interpreter/src/ops/Greater.h29
-rw-r--r--compiler/mir-interpreter/src/ops/HardSwish.cpp54
-rw-r--r--compiler/mir-interpreter/src/ops/HardSwish.h29
-rw-r--r--compiler/mir-interpreter/src/ops/LeakyReLU.cpp49
-rw-r--r--compiler/mir-interpreter/src/ops/LeakyReLU.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Less.cpp57
-rw-r--r--compiler/mir-interpreter/src/ops/Less.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Max.cpp66
-rw-r--r--compiler/mir-interpreter/src/ops/Max.h29
-rw-r--r--compiler/mir-interpreter/src/ops/MaxPool2D.cpp157
-rw-r--r--compiler/mir-interpreter/src/ops/MaxPool2D.h31
-rw-r--r--compiler/mir-interpreter/src/ops/Mul.cpp61
-rw-r--r--compiler/mir-interpreter/src/ops/Mul.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Pad.cpp84
-rw-r--r--compiler/mir-interpreter/src/ops/Pad.h36
-rw-r--r--compiler/mir-interpreter/src/ops/Quantization.cpp71
-rw-r--r--compiler/mir-interpreter/src/ops/Quantization.h32
-rw-r--r--compiler/mir-interpreter/src/ops/QuantizationHelpers.h126
-rw-r--r--compiler/mir-interpreter/src/ops/ReLU.cpp58
-rw-r--r--compiler/mir-interpreter/src/ops/ReLU.h29
-rw-r--r--compiler/mir-interpreter/src/ops/ReduceMean.cpp98
-rw-r--r--compiler/mir-interpreter/src/ops/ReduceMean.h30
-rw-r--r--compiler/mir-interpreter/src/ops/Reshape.cpp38
-rw-r--r--compiler/mir-interpreter/src/ops/Reshape.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Sigmoid.cpp58
-rw-r--r--compiler/mir-interpreter/src/ops/Sigmoid.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Slice.cpp52
-rw-r--r--compiler/mir-interpreter/src/ops/Slice.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Softmax.cpp155
-rw-r--r--compiler/mir-interpreter/src/ops/Softmax.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Sqrt.cpp58
-rw-r--r--compiler/mir-interpreter/src/ops/Sqrt.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Sub.cpp61
-rw-r--r--compiler/mir-interpreter/src/ops/Sub.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Tanh.cpp58
-rw-r--r--compiler/mir-interpreter/src/ops/Tanh.h29
-rw-r--r--compiler/mir-interpreter/src/ops/Transpose.cpp64
-rw-r--r--compiler/mir-interpreter/src/ops/Transpose.h31
-rw-r--r--compiler/mir-onnx-importer/AttributeHelpers.h105
-rw-r--r--compiler/mir-onnx-importer/CMakeLists.txt119
-rw-r--r--compiler/mir-onnx-importer/ConvPoolHelpers.cpp113
-rw-r--r--compiler/mir-onnx-importer/ConvPoolHelpers.h44
-rw-r--r--compiler/mir-onnx-importer/ONNXHelpers.cpp188
-rw-r--r--compiler/mir-onnx-importer/ONNXHelpers.h50
-rw-r--r--compiler/mir-onnx-importer/ONNXImporterImpl.cpp241
-rw-r--r--compiler/mir-onnx-importer/ONNXImporterImpl.h35
-rw-r--r--compiler/mir-onnx-importer/ONNXNodeConverterRegistry.cpp142
-rw-r--r--compiler/mir-onnx-importer/ONNXNodeConverterRegistry.h80
-rw-r--r--compiler/mir-onnx-importer/ONNXNodeConverterRegistry.test.cpp64
-rw-r--r--compiler/mir-onnx-importer/ONNXOpRegistration.h256
-rw-r--r--compiler/mir-onnx-importer/Op/Abs.cpp47
-rw-r--r--compiler/mir-onnx-importer/Op/Abs.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Add.cpp53
-rw-r--r--compiler/mir-onnx-importer/Op/Add.h31
-rw-r--r--compiler/mir-onnx-importer/Op/AveragePool.cpp99
-rw-r--r--compiler/mir-onnx-importer/Op/AveragePool.h31
-rw-r--r--compiler/mir-onnx-importer/Op/BatchNormalization.cpp119
-rw-r--r--compiler/mir-onnx-importer/Op/BatchNormalization.h32
-rw-r--r--compiler/mir-onnx-importer/Op/Concat.cpp54
-rw-r--r--compiler/mir-onnx-importer/Op/Concat.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Constant.cpp61
-rw-r--r--compiler/mir-onnx-importer/Op/Constant.h31
-rw-r--r--compiler/mir-onnx-importer/Op/Conv.cpp156
-rw-r--r--compiler/mir-onnx-importer/Op/Conv.h29
-rw-r--r--compiler/mir-onnx-importer/Op/ConvTranspose.cpp138
-rw-r--r--compiler/mir-onnx-importer/Op/ConvTranspose.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Div.cpp38
-rw-r--r--compiler/mir-onnx-importer/Op/Div.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Dropout.cpp54
-rw-r--r--compiler/mir-onnx-importer/Op/Dropout.h32
-rw-r--r--compiler/mir-onnx-importer/Op/Equal.cpp43
-rw-r--r--compiler/mir-onnx-importer/Op/Equal.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Expand.cpp43
-rw-r--r--compiler/mir-onnx-importer/Op/Expand.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Flatten.cpp58
-rw-r--r--compiler/mir-onnx-importer/Op/Flatten.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Gather.cpp40
-rw-r--r--compiler/mir-onnx-importer/Op/Gather.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Gemm.cpp120
-rw-r--r--compiler/mir-onnx-importer/Op/Gemm.h33
-rw-r--r--compiler/mir-onnx-importer/Op/GlobalAveragePool.cpp50
-rw-r--r--compiler/mir-onnx-importer/Op/GlobalAveragePool.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Greater.cpp47
-rw-r--r--compiler/mir-onnx-importer/Op/Greater.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Identity.cpp30
-rw-r--r--compiler/mir-onnx-importer/Op/Identity.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Less.cpp47
-rw-r--r--compiler/mir-onnx-importer/Op/Less.h30
-rw-r--r--compiler/mir-onnx-importer/Op/MatMul.cpp50
-rw-r--r--compiler/mir-onnx-importer/Op/MatMul.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Max.cpp54
-rw-r--r--compiler/mir-onnx-importer/Op/Max.h31
-rw-r--r--compiler/mir-onnx-importer/Op/MaxPool.cpp107
-rw-r--r--compiler/mir-onnx-importer/Op/MaxPool.h31
-rw-r--r--compiler/mir-onnx-importer/Op/Mul.cpp35
-rw-r--r--compiler/mir-onnx-importer/Op/Mul.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Pad.cpp70
-rw-r--r--compiler/mir-onnx-importer/Op/Pad.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Reciprocal.cpp53
-rw-r--r--compiler/mir-onnx-importer/Op/Reciprocal.h30
-rw-r--r--compiler/mir-onnx-importer/Op/ReduceMean.cpp60
-rw-r--r--compiler/mir-onnx-importer/Op/ReduceMean.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Relu.cpp46
-rw-r--r--compiler/mir-onnx-importer/Op/Relu.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Reshape.cpp97
-rw-r--r--compiler/mir-onnx-importer/Op/Reshape.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Shape.cpp46
-rw-r--r--compiler/mir-onnx-importer/Op/Shape.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Sigmoid.cpp46
-rw-r--r--compiler/mir-onnx-importer/Op/Sigmoid.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Softmax.cpp40
-rw-r--r--compiler/mir-onnx-importer/Op/Softmax.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Sqrt.cpp46
-rw-r--r--compiler/mir-onnx-importer/Op/Sqrt.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Sub.cpp53
-rw-r--r--compiler/mir-onnx-importer/Op/Sub.h31
-rw-r--r--compiler/mir-onnx-importer/Op/Sum.cpp41
-rw-r--r--compiler/mir-onnx-importer/Op/Sum.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Tanh.cpp46
-rw-r--r--compiler/mir-onnx-importer/Op/Tanh.h30
-rw-r--r--compiler/mir-onnx-importer/Op/Transpose.cpp57
-rw-r--r--compiler/mir-onnx-importer/Op/Transpose.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Unsqueeze.cpp56
-rw-r--r--compiler/mir-onnx-importer/Op/Unsqueeze.h29
-rw-r--r--compiler/mir-onnx-importer/Op/Upsample.cpp124
-rw-r--r--compiler/mir-onnx-importer/Op/Upsample.h31
-rw-r--r--compiler/mir-onnx-importer/requires.cmake2
-rw-r--r--compiler/mir-tflite-importer/CMakeLists.txt22
-rw-r--r--compiler/mir-tflite-importer/requires.cmake1
-rw-r--r--compiler/mir-tflite-importer/schema/schema.fbs937
-rw-r--r--compiler/mir-tflite-importer/schema/schema.meta2
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v0.fbs247
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v0.meta2
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v1.fbs295
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v1.meta2
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v2.fbs303
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v2.meta2
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v3.fbs326
-rw-r--r--compiler/mir-tflite-importer/schema/schema_v3.meta2
-rw-r--r--compiler/mir-tflite-importer/tflite_importer.cpp428
-rw-r--r--compiler/mir-tflite-importer/tflite_importer.h32
-rw-r--r--compiler/mir-tflite-importer/tflite_op_creator.cpp649
-rw-r--r--compiler/mir-tflite-importer/tflite_op_creator.h163
-rw-r--r--compiler/mir/CMakeLists.txt38
-rw-r--r--compiler/mir/Readme.md36
-rw-r--r--compiler/mir/include/mir/Attributes.h83
-rw-r--r--compiler/mir/include/mir/Common.h36
-rw-r--r--compiler/mir/include/mir/DataFormat.h90
-rw-r--r--compiler/mir/include/mir/DataType.h58
-rw-r--r--compiler/mir/include/mir/ExternalRegion.h44
-rw-r--r--compiler/mir/include/mir/Graph.h111
-rw-r--r--compiler/mir/include/mir/GraphPatternMatcher.h55
-rw-r--r--compiler/mir/include/mir/Index.h81
-rw-r--r--compiler/mir/include/mir/IrDotDumper.h31
-rw-r--r--compiler/mir/include/mir/OpDefs.h60
-rw-r--r--compiler/mir/include/mir/Operation.h188
-rw-r--r--compiler/mir/include/mir/Operations.inc59
-rw-r--r--compiler/mir/include/mir/Quantization.h47
-rw-r--r--compiler/mir/include/mir/Region.h37
-rw-r--r--compiler/mir/include/mir/Shape.h75
-rw-r--r--compiler/mir/include/mir/ShapeRange.h109
-rw-r--r--compiler/mir/include/mir/Tensor.h62
-rw-r--r--compiler/mir/include/mir/TensorType.h56
-rw-r--r--compiler/mir/include/mir/TensorUtil.h59
-rw-r--r--compiler/mir/include/mir/TensorVariant.h86
-rw-r--r--compiler/mir/include/mir/Visitor.h63
-rw-r--r--compiler/mir/include/mir/ops/AbsOp.h45
-rw-r--r--compiler/mir/include/mir/ops/AddOp.h41
-rw-r--r--compiler/mir/include/mir/ops/AvgPool2DOp.h68
-rw-r--r--compiler/mir/include/mir/ops/BinaryElementwiseOp.h42
-rw-r--r--compiler/mir/include/mir/ops/BroadcastOp.h47
-rw-r--r--compiler/mir/include/mir/ops/CappedReluOp.h50
-rw-r--r--compiler/mir/include/mir/ops/ConcatOp.h67
-rw-r--r--compiler/mir/include/mir/ops/ConstantOp.h52
-rw-r--r--compiler/mir/include/mir/ops/Conv2DOp.h73
-rw-r--r--compiler/mir/include/mir/ops/Deconv2DOp.h84
-rw-r--r--compiler/mir/include/mir/ops/DepthwiseConv2DOp.h72
-rw-r--r--compiler/mir/include/mir/ops/DequantizeOp.h46
-rw-r--r--compiler/mir/include/mir/ops/DivOp.h41
-rw-r--r--compiler/mir/include/mir/ops/EluOp.h49
-rw-r--r--compiler/mir/include/mir/ops/EqualOp.h44
-rw-r--r--compiler/mir/include/mir/ops/FullyConnectedOp.h58
-rw-r--r--compiler/mir/include/mir/ops/GatherOp.h57
-rw-r--r--compiler/mir/include/mir/ops/GreaterOp.h44
-rw-r--r--compiler/mir/include/mir/ops/HardSwishOp.h44
-rw-r--r--compiler/mir/include/mir/ops/InputOp.h49
-rw-r--r--compiler/mir/include/mir/ops/LeakyReluOp.h50
-rw-r--r--compiler/mir/include/mir/ops/LessOp.h44
-rw-r--r--compiler/mir/include/mir/ops/MaxOp.h41
-rw-r--r--compiler/mir/include/mir/ops/MaxPool2DOp.h66
-rw-r--r--compiler/mir/include/mir/ops/MulOp.h41
-rw-r--r--compiler/mir/include/mir/ops/OutputOp.h41
-rw-r--r--compiler/mir/include/mir/ops/PadOp.h58
-rw-r--r--compiler/mir/include/mir/ops/PaddingType.h37
-rw-r--r--compiler/mir/include/mir/ops/QuantizeOp.h44
-rw-r--r--compiler/mir/include/mir/ops/ReduceMeanOp.h45
-rw-r--r--compiler/mir/include/mir/ops/ReduceOp.h52
-rw-r--r--compiler/mir/include/mir/ops/ReluOp.h45
-rw-r--r--compiler/mir/include/mir/ops/ReshapeOp.h64
-rw-r--r--compiler/mir/include/mir/ops/ResizeOp.h87
-rw-r--r--compiler/mir/include/mir/ops/SigmoidOp.h45
-rw-r--r--compiler/mir/include/mir/ops/SliceOp.h55
-rw-r--r--compiler/mir/include/mir/ops/SoftmaxOp.h64
-rw-r--r--compiler/mir/include/mir/ops/SqrtOp.h44
-rw-r--r--compiler/mir/include/mir/ops/SqueezeOp.h56
-rw-r--r--compiler/mir/include/mir/ops/SubOp.h41
-rw-r--r--compiler/mir/include/mir/ops/TanhOp.h45
-rw-r--r--compiler/mir/include/mir/ops/TransposeOp.h54
-rw-r--r--compiler/mir/src/DotGraph.cpp41
-rw-r--r--compiler/mir/src/DotGraph.h55
-rw-r--r--compiler/mir/src/DotNodeBuilder.cpp205
-rw-r--r--compiler/mir/src/DotNodeBuilder.h70
-rw-r--r--compiler/mir/src/Graph.cpp136
-rw-r--r--compiler/mir/src/GraphPatternMatcher.cpp76
-rw-r--r--compiler/mir/src/Index.cpp50
-rw-r--r--compiler/mir/src/IrDotDumper.cpp41
-rw-r--r--compiler/mir/src/Operation.cpp87
-rw-r--r--compiler/mir/src/Shape.cpp87
-rw-r--r--compiler/mir/src/Tensor.cpp26
-rw-r--r--compiler/mir/src/TensorVariant.cpp74
-rw-r--r--compiler/mir/src/Visitor.cpp29
-rw-r--r--compiler/mir/src/ops/AvgPool2DOp.cpp60
-rw-r--r--compiler/mir/src/ops/BinaryElementwiseOp.cpp39
-rw-r--r--compiler/mir/src/ops/BroadcastOp.cpp35
-rw-r--r--compiler/mir/src/ops/ConcatOp.cpp40
-rw-r--r--compiler/mir/src/ops/Conv2DOp.cpp67
-rw-r--r--compiler/mir/src/ops/DeConv2DOp.cpp96
-rw-r--r--compiler/mir/src/ops/DepthwiseConv2DOp.cpp60
-rw-r--r--compiler/mir/src/ops/FullyConnectedOp.cpp46
-rw-r--r--compiler/mir/src/ops/GatherOp.cpp52
-rw-r--r--compiler/mir/src/ops/MaxPool2DOp.cpp60
-rw-r--r--compiler/mir/src/ops/PadOp.cpp40
-rw-r--r--compiler/mir/src/ops/ReduceOp.cpp61
-rw-r--r--compiler/mir/src/ops/SliceOp.cpp45
-rw-r--r--compiler/mir/src/ops/SqueezeOp.cpp81
-rw-r--r--compiler/mir/src/ops/TransposeOp.cpp43
-rw-r--r--compiler/mir/unittests/CMakeLists.txt16
-rw-r--r--compiler/mir/unittests/Index.cpp63
-rw-r--r--compiler/mir/unittests/NodeReplacer.cpp65
-rw-r--r--compiler/mir/unittests/Operation.cpp93
-rw-r--r--compiler/mir/unittests/ShapeInference.cpp203
-rw-r--r--compiler/mir/unittests/ShapeRange.cpp78
-rw-r--r--compiler/mir/unittests/TensorVariant.cpp39
-rw-r--r--compiler/mir2loco/CMakeLists.txt19
-rw-r--r--compiler/mir2loco/include/mir2loco.h58
-rw-r--r--compiler/mir2loco/requires.cmake2
-rw-r--r--compiler/mir2loco/src/mir2loco.cpp725
-rw-r--r--compiler/mir2loco/src/mir2loco.test.cpp736
-rw-r--r--compiler/moco-log/CMakeLists.txt9
-rw-r--r--compiler/moco-log/README.md3
-rw-r--r--compiler/moco-log/include/moco/Log.h75
-rw-r--r--compiler/moco-log/include/moco/LoggingContext.h35
-rw-r--r--compiler/moco-log/requires.cmake2
-rw-r--r--compiler/moco-log/src/Log.cpp87
-rw-r--r--compiler/moco-log/src/LoggingContext.cpp40
-rw-r--r--compiler/moco-tf/CMakeLists.txt51
-rw-r--r--compiler/moco-tf/README.md57
-rw-r--r--compiler/moco-tf/doc/Conversion.md140
-rw-r--r--compiler/moco-tf/include/moco/tf/Frontend.h54
-rw-r--r--compiler/moco-tf/requires.cmake13
-rw-r--r--compiler/moco-tf/src/BroadcastHelper.cpp226
-rw-r--r--compiler/moco-tf/src/BroadcastHelper.h76
-rw-r--r--compiler/moco-tf/src/BroadcastHelper.test.cpp88
-rw-r--r--compiler/moco-tf/src/CanonicalEltwiseInputConnector.cpp49
-rw-r--r--compiler/moco-tf/src/CanonicalEltwiseInputConnector.h60
-rw-r--r--compiler/moco-tf/src/Canonicalization/AddCanonicalizer.cpp35
-rw-r--r--compiler/moco-tf/src/Canonicalization/AddCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/AvgPoolCanonicalizer.cpp114
-rw-r--r--compiler/moco-tf/src/Canonicalization/AvgPoolCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.cpp109
-rw-r--r--compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/ConcatV2Canonicalizer.cpp160
-rw-r--r--compiler/moco-tf/src/Canonicalization/ConcatV2Canonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/ConstCanonicalizer.cpp127
-rw-r--r--compiler/moco-tf/src/Canonicalization/ConstCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/Conv2DBackpropInputCanonicalizer.cpp371
-rw-r--r--compiler/moco-tf/src/Canonicalization/Conv2DBackpropInputCanonicalizer.h45
-rw-r--r--compiler/moco-tf/src/Canonicalization/Conv2DCanonicalizer.cpp132
-rw-r--r--compiler/moco-tf/src/Canonicalization/Conv2DCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/DepthwiseConv2dNativeCanonicalizer.cpp137
-rw-r--r--compiler/moco-tf/src/Canonicalization/DepthwiseConv2dNativeCanonicalizer.h45
-rw-r--r--compiler/moco-tf/src/Canonicalization/IdentityCanonicalizer.cpp78
-rw-r--r--compiler/moco-tf/src/Canonicalization/IdentityCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/MaxPoolCanonicalizer.cpp111
-rw-r--r--compiler/moco-tf/src/Canonicalization/MaxPoolCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/MaximumCanonicalizer.cpp34
-rw-r--r--compiler/moco-tf/src/Canonicalization/MaximumCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/MeanCanonicalizer.cpp31
-rw-r--r--compiler/moco-tf/src/Canonicalization/MeanCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/MulCanonicalizer.cpp34
-rw-r--r--compiler/moco-tf/src/Canonicalization/MulCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/PadCanonicalizer.cpp100
-rw-r--r--compiler/moco-tf/src/Canonicalization/PadCanonicalizer.h45
-rw-r--r--compiler/moco-tf/src/Canonicalization/PlaceholderCanonicalizer.cpp102
-rw-r--r--compiler/moco-tf/src/Canonicalization/PlaceholderCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/RealDivCanonicalizer.cpp34
-rw-r--r--compiler/moco-tf/src/Canonicalization/RealDivCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/Relu6Canonicalizer.cpp70
-rw-r--r--compiler/moco-tf/src/Canonicalization/Relu6Canonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/ReluCanonicalizer.cpp70
-rw-r--r--compiler/moco-tf/src/Canonicalization/ReluCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/ReshapeCanonicalizer.cpp169
-rw-r--r--compiler/moco-tf/src/Canonicalization/ReshapeCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/RsqrtCanonicalizer.cpp150
-rw-r--r--compiler/moco-tf/src/Canonicalization/RsqrtCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/SoftmaxCanonicalizer.cpp78
-rw-r--r--compiler/moco-tf/src/Canonicalization/SoftmaxCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/SqrtCanonicalizer.cpp68
-rw-r--r--compiler/moco-tf/src/Canonicalization/SqrtCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/SqueezeCanonicalizer.cpp86
-rw-r--r--compiler/moco-tf/src/Canonicalization/SqueezeCanonicalizer.h49
-rw-r--r--compiler/moco-tf/src/Canonicalization/StopGradientCanonicalizer.cpp71
-rw-r--r--compiler/moco-tf/src/Canonicalization/StopGradientCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/SubCanonicalizer.cpp34
-rw-r--r--compiler/moco-tf/src/Canonicalization/SubCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/TFPushCanonicalizer.cpp74
-rw-r--r--compiler/moco-tf/src/Canonicalization/TFPushCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalization/TanhCanonicalizer.cpp70
-rw-r--r--compiler/moco-tf/src/Canonicalization/TanhCanonicalizer.h47
-rw-r--r--compiler/moco-tf/src/Canonicalizer.cpp142
-rw-r--r--compiler/moco-tf/src/Canonicalizer.h36
-rw-r--r--compiler/moco-tf/src/Canonicalizer.test.cpp33
-rw-r--r--compiler/moco-tf/src/CodecHelper.h74
-rw-r--r--compiler/moco-tf/src/Convert.cpp34
-rw-r--r--compiler/moco-tf/src/Convert.h31
-rw-r--r--compiler/moco-tf/src/Convert.test.cpp29
-rw-r--r--compiler/moco-tf/src/Frontend.cpp277
-rw-r--r--compiler/moco-tf/src/Frontend.test.cpp84
-rw-r--r--compiler/moco-tf/src/Knob.cpp123
-rw-r--r--compiler/moco-tf/src/Knob.h47
-rw-r--r--compiler/moco-tf/src/Knob.lst39
-rw-r--r--compiler/moco-tf/src/LogHelper.cpp82
-rw-r--r--compiler/moco-tf/src/LogHelper.h73
-rw-r--r--compiler/moco-tf/src/Op/COpCall.cpp126
-rw-r--r--compiler/moco-tf/src/Op/COpCall.h46
-rw-r--r--compiler/moco-tf/src/Op/COpCall.test.cpp121
-rw-r--r--compiler/moco-tf/src/Optimizer.cpp90
-rw-r--r--compiler/moco-tf/src/Optimizer.h36
-rw-r--r--compiler/moco-tf/src/Optimizer.test.cpp87
-rw-r--r--compiler/moco-tf/src/ProgressReporter.cpp88
-rw-r--r--compiler/moco-tf/src/ProgressReporter.h56
-rw-r--r--compiler/moco-tf/src/SimpleNodeTransform.h64
-rw-r--r--compiler/moco-tf/src/SimpleNodeTransform.test.cpp56
-rw-r--r--compiler/moco-tf/src/TFEltwiseBinaryCanonicalzeHelper.h117
-rw-r--r--compiler/moco-tf/src/TFFormattedGraph.cpp400
-rw-r--r--compiler/moco-tf/src/TFFormattedGraph.h59
-rw-r--r--compiler/moco-tf/src/TFOptimizer.cpp81
-rw-r--r--compiler/moco-tf/src/TFOptimizer.h36
-rw-r--r--compiler/moco-tf/src/TFOptimizer.test.cpp33
-rw-r--r--compiler/moco-tf/src/TFReduceCanonicalzeHelper.h118
-rw-r--r--compiler/moco-tf/src/TestHelper.h113
-rw-r--r--compiler/moco-tf/src/TestHelper.test.cpp121
-rw-r--r--compiler/moco-tf/src/Transform.cpp35
-rw-r--r--compiler/moco-tf/src/Transform.h44
-rw-r--r--compiler/moco-tf/src/Transform.test.cpp46
-rw-r--r--compiler/moco-tf/src/Transforms.h26
-rw-r--r--compiler/moco-tf/src/Transforms/ShapeInferencePass.cpp56
-rw-r--r--compiler/moco-tf/src/Transforms/ShapeInferencePass.h44
-rw-r--r--compiler/moco-tf/src/Transforms/TypeInferencePass.cpp54
-rw-r--r--compiler/moco-tf/src/Transforms/TypeInferencePass.h44
-rw-r--r--compiler/moco-value-pbtxt-test/.gitignore1
-rw-r--r--compiler/moco-value-pbtxt-test/CMakeLists.txt136
-rw-r--r--compiler/moco-value-pbtxt-test/README.md1
-rw-r--r--compiler/moco-value-pbtxt-test/requires.cmake2
-rwxr-xr-xcompiler/moco-value-pbtxt-test/runall.sh96
-rw-r--r--compiler/moco-value-pbtxt-test/test.lst103
-rw-r--r--compiler/moco/CMakeLists.txt5
-rw-r--r--compiler/moco/README.md3
-rw-r--r--compiler/moco/import/CMakeLists.txt26
-rw-r--r--compiler/moco/import/README.md3
-rw-r--r--compiler/moco/import/include/moco/GraphHelper.h59
-rw-r--r--compiler/moco/import/include/moco/Import/GraphBuilder.h40
-rw-r--r--compiler/moco/import/include/moco/Import/GraphBuilderContext.h144
-rw-r--r--compiler/moco/import/include/moco/Import/GraphBuilderRegistry.h87
-rw-r--r--compiler/moco/import/include/moco/Import/ModelSignature.h80
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes.h53
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Add.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/AvgPool.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/BiasAdd.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Concat.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Const.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Conv2D.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Conv2DBackpropInput.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/DepthwiseConv2dNative.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/FakeQuantWithMinMaxVars.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/FusedBatchNorm.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Identity.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/MaxPool.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Maximum.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Mean.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Mul.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Pack.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Pad.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Placeholder.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/RealDiv.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Relu.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Relu6.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Reshape.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Rsqrt.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Shape.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Softmax.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Sqrt.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/SquaredDifference.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Squeeze.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/StopGradient.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/StridedSlice.h34
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Sub.h37
-rw-r--r--compiler/moco/import/include/moco/Import/Nodes/Tanh.h37
-rw-r--r--compiler/moco/import/include/moco/Importer.h54
-rw-r--r--compiler/moco/import/src/Convert.cpp34
-rw-r--r--compiler/moco/import/src/Convert.h31
-rw-r--r--compiler/moco/import/src/GraphBuilderContext.cpp80
-rw-r--r--compiler/moco/import/src/GraphBuilderContext.test.cpp77
-rw-r--r--compiler/moco/import/src/GraphBuilderRegistry.cpp63
-rw-r--r--compiler/moco/import/src/Importer.cpp197
-rw-r--r--compiler/moco/import/src/Importer.test.cpp223
-rw-r--r--compiler/moco/import/src/ModelSignature.cpp66
-rw-r--r--compiler/moco/import/src/Nodes/Add.cpp85
-rw-r--r--compiler/moco/import/src/Nodes/Add.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/AvgPool.cpp140
-rw-r--r--compiler/moco/import/src/Nodes/AvgPool.test.cpp99
-rw-r--r--compiler/moco/import/src/Nodes/BiasAdd.cpp122
-rw-r--r--compiler/moco/import/src/Nodes/BiasAdd.test.cpp112
-rw-r--r--compiler/moco/import/src/Nodes/Concat.cpp109
-rw-r--r--compiler/moco/import/src/Nodes/Concat.test.cpp134
-rw-r--r--compiler/moco/import/src/Nodes/Const.cpp242
-rw-r--r--compiler/moco/import/src/Nodes/Const.test.cpp465
-rw-r--r--compiler/moco/import/src/Nodes/Conv2D.cpp139
-rw-r--r--compiler/moco/import/src/Nodes/Conv2D.test.cpp119
-rw-r--r--compiler/moco/import/src/Nodes/Conv2DBackpropInput.cpp140
-rw-r--r--compiler/moco/import/src/Nodes/Conv2DBackpropInput.test.cpp98
-rw-r--r--compiler/moco/import/src/Nodes/DepthwiseConv2dNative.cpp148
-rw-r--r--compiler/moco/import/src/Nodes/DepthwiseConv2dNative.test.cpp97
-rw-r--r--compiler/moco/import/src/Nodes/FakeQuantWithMinMaxVars.cpp123
-rw-r--r--compiler/moco/import/src/Nodes/FakeQuantWithMinMaxVars.test.cpp65
-rw-r--r--compiler/moco/import/src/Nodes/FusedBatchNorm.cpp102
-rw-r--r--compiler/moco/import/src/Nodes/FusedBatchNorm.test.cpp88
-rw-r--r--compiler/moco/import/src/Nodes/Identity.cpp95
-rw-r--r--compiler/moco/import/src/Nodes/MaxPool.cpp145
-rw-r--r--compiler/moco/import/src/Nodes/MaxPool.test.cpp98
-rw-r--r--compiler/moco/import/src/Nodes/Maximum.cpp87
-rw-r--r--compiler/moco/import/src/Nodes/Maximum.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Mean.cpp99
-rw-r--r--compiler/moco/import/src/Nodes/Mean.test.cpp120
-rw-r--r--compiler/moco/import/src/Nodes/Mul.cpp85
-rw-r--r--compiler/moco/import/src/Nodes/Mul.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Pack.cpp102
-rw-r--r--compiler/moco/import/src/Nodes/Pack.test.cpp84
-rw-r--r--compiler/moco/import/src/Nodes/Pad.cpp91
-rw-r--r--compiler/moco/import/src/Nodes/Pad.test.cpp65
-rw-r--r--compiler/moco/import/src/Nodes/Placeholder.cpp90
-rw-r--r--compiler/moco/import/src/Nodes/Placeholder.test.cpp71
-rw-r--r--compiler/moco/import/src/Nodes/RealDiv.cpp86
-rw-r--r--compiler/moco/import/src/Nodes/RealDiv.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Relu.cpp86
-rw-r--r--compiler/moco/import/src/Nodes/Relu.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Relu6.cpp80
-rw-r--r--compiler/moco/import/src/Nodes/Relu6.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Reshape.cpp102
-rw-r--r--compiler/moco/import/src/Nodes/Reshape.test.cpp61
-rw-r--r--compiler/moco/import/src/Nodes/Rsqrt.cpp82
-rw-r--r--compiler/moco/import/src/Nodes/Rsqrt.test.cpp57
-rw-r--r--compiler/moco/import/src/Nodes/Shape.cpp100
-rw-r--r--compiler/moco/import/src/Nodes/Shape.test.cpp65
-rw-r--r--compiler/moco/import/src/Nodes/Softmax.cpp86
-rw-r--r--compiler/moco/import/src/Nodes/Softmax.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Sqrt.cpp81
-rw-r--r--compiler/moco/import/src/Nodes/Sqrt.test.cpp57
-rw-r--r--compiler/moco/import/src/Nodes/SquaredDifference.cpp92
-rw-r--r--compiler/moco/import/src/Nodes/SquaredDifference.test.cpp59
-rw-r--r--compiler/moco/import/src/Nodes/Squeeze.cpp112
-rw-r--r--compiler/moco/import/src/Nodes/Squeeze.test.cpp109
-rw-r--r--compiler/moco/import/src/Nodes/StopGradient.cpp87
-rw-r--r--compiler/moco/import/src/Nodes/StopGradient.test.cpp57
-rw-r--r--compiler/moco/import/src/Nodes/StridedSlice.cpp187
-rw-r--r--compiler/moco/import/src/Nodes/StridedSlice.test.cpp107
-rw-r--r--compiler/moco/import/src/Nodes/Sub.cpp85
-rw-r--r--compiler/moco/import/src/Nodes/Sub.test.cpp58
-rw-r--r--compiler/moco/import/src/Nodes/Tanh.cpp81
-rw-r--r--compiler/moco/import/src/Nodes/Tanh.test.cpp57
-rw-r--r--compiler/moco/import/src/TestHelper.h83
-rw-r--r--compiler/moco/import/src/TestHelper.test.cpp101
-rw-r--r--compiler/moco/lang/CMakeLists.txt21
-rw-r--r--compiler/moco/lang/README.md3
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFAdd.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFAvgPool.h101
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFBiasAdd.h68
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFConcatV2.h90
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFConst.h94
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFConv2D.h55
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFConv2DBackpropInput.h102
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFDepthwiseConv2dNative.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFFakeQuantWithMinMaxVars.h54
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFFusedBatchNorm.h55
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFIdentity.h52
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFMaxPool.h101
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFMaximum.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFMean.h71
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFMul.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFPack.h86
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFPad.h61
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFPlaceholder.h90
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFPush.h84
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFRealDiv.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFRelu.h52
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFRelu6.h50
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFReshape.h54
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFRsqrt.h52
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFShape.h60
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFSoftmax.h37
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFSqrt.h52
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFSquaredDifference.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFSqueeze.h71
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFStopGradient.h52
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFStridedSlice.h123
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFSub.h56
-rw-r--r--compiler/moco/lang/include/moco/IR/Nodes/TFTanh.h37
-rw-r--r--compiler/moco/lang/include/moco/IR/TFDataLayout.h29
-rw-r--r--compiler/moco/lang/include/moco/IR/TFDialect.h43
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNode.h23
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNodeDecl.h104
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNodeImpl.h68
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNodeVisitor.forward.h30
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNodeVisitor.h83
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNodes.h55
-rw-r--r--compiler/moco/lang/include/moco/IR/TFNodes.lst48
-rw-r--r--compiler/moco/lang/include/moco/IR/TFOpcode.h35
-rw-r--r--compiler/moco/lang/include/moco/IR/TFPadding.h29
-rw-r--r--compiler/moco/lang/include/moco/IR/VariadicArityNode.h77
-rw-r--r--compiler/moco/lang/include/moco/Names.h96
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFAdd.test.cpp31
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFAvgPool.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFBiasAdd.test.cpp32
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFConcatV2.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFConst.cpp113
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFConst.test.cpp95
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFConv2D.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFConv2DBackpropInput.test.cpp35
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFDepthwiseConv2dNative.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFFakeQuantWithMinMaxVars.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFFusedBatchNorm.test.cpp35
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFIdentity.test.cpp30
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFMaxPool.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFMaximum.test.cpp31
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFMean.test.cpp32
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFMul.test.cpp31
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFPack.test.cpp34
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFPad.test.cpp31
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFPlaceholder.test.cpp46
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFRealDiv.test.cpp31
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFRelu.test.cpp30
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFRelu6.test.cpp30
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFReshape.test.cpp31
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFRsqrt.test.cpp30
-rw-r--r--compiler/moco/lang/src/IR/Nodes/TFShape.test.cpp31
-rw-r--r--