Move `contrib/nnc/include/core/modelIR` to `contrib/nnc/include/mir` in preparation for moving the MIR component to `contrib` directory.
Update `#include` directives.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
* limitations under the License.
*/
-#include "core/modelIR/Deserializer.h"
+#include "mir/Deserializer.h"
#include "model_ir.pb.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
namespace mir
{
* limitations under the License.
*/
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
#include <deque>
#include <set>
* limitations under the License.
*/
-#include "core/modelIR/GraphPatternMatcher.h"
+#include "mir/GraphPatternMatcher.h"
#include <algorithm>
#include <vector>
* limitations under the License.
*/
-#include "core/modelIR/Index.h"
+#include "mir/Index.h"
#include <algorithm>
#include <cassert>
* limitations under the License.
*/
-#include "core/modelIR/IrDotDumper.h"
-
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/IrDotDumper.h"
+
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include <iostream>
#include <map>
* limitations under the License.
*/
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/Operation.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
namespace mir {
case Type::OpType: \
v->visit(static_cast<ops::OpClass&>(*this)); \
break;
-#include "core/modelIR/operations/operations.lst.h"
+#include "mir/ops/operations.lst.h"
#undef HANDLE_OP
default:
assert(false && "OP not defined!");
* limitations under the License.
*/
-#include "core/modelIR/Serializer.h"
+#include "mir/Serializer.h"
#include "model_ir.pb.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
namespace mir
{
* limitations under the License.
*/
-#include "core/modelIR/Shape.h"
+#include "mir/Shape.h"
#include <algorithm>
#include <cassert>
* limitations under the License.
*/
-#include "core/modelIR/Tensor.h"
+#include "mir/Tensor.h"
namespace mir
{
* limitations under the License.
*/
-#include "core/modelIR/TensorVariant.h"
+#include "mir/TensorVariant.h"
#include <cstring>
namespace mir
*/
-#include "core/modelIR/Visitor.h"
+#include "mir/Visitor.h"
namespace mir {
#define HANDLE_OP(OpType, OpClass) void Visitor::visit(ops::OpClass&) {}
-#include "core/modelIR/operations/operations.lst.h"
+#include "mir/ops/operations.lst.h"
#undef HANDLE_OP
} // namespace mir
* limitations under the License.
*/
-#include "core/modelIR/ir_dot_builder.h"
+#include "mir/ir_dot_builder.h"
namespace mir {
#include <sstream>
#include <iostream>
-#include "core/modelIR/ir_dot_node_info.h"
+#include "mir/ir_dot_node_info.h"
namespace mir
{
* limitations under the License.
*/
-#include "core/modelIR/operations/ConcatOp.h"
+#include "mir/ops/ConcatOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/Conv2DOp.h"
+#include "mir/ops/Conv2DOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/Deconv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/ElementwiseOp.h"
+#include "mir/ops/ElementwiseOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/FullyConnectedOp.h"
+#include "mir/ops/FullyConnectedOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/GatherOp.h"
+#include "mir/ops/GatherOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/GemmOp.h"
+#include "mir/ops/GemmOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/PadOp.h"
+#include "mir/ops/PadOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/PoolOp.h"
+#include "mir/ops/PoolOp.h"
namespace mir {
namespace ops {
*/
-#include "core/modelIR/operations/SliceOp.h"
+#include "mir/ops/SliceOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/SqueezeOp.h"
+#include "mir/ops/SqueezeOp.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/ops/TransposeOp.h"
namespace mir {
namespace ops {
#include "model_ir.pb.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Shape.h"
+#include "mir/TensorVariant.h"
namespace mir
{
#ifndef _NNC_CORE_LINALG_EXTERNAL_REGION_H_
#define _NNC_CORE_LINALG_EXTERNAL_REGION_H_
-#include "core/modelIR/Region.h"
+#include "mir/Region.h"
namespace mir
{
#include <unordered_map>
#include <set>
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/OutputOp.h"
+#include "mir/Operation.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/OutputOp.h"
namespace mir {
#ifndef NNCC_GRAPH_PATTERN_MATCHER_H
#define NNCC_GRAPH_PATTERN_MATCHER_H
-#include "Graph.h"
+#include "mir/Graph.h"
namespace mir {
#include <cstdint>
#include <ostream>
-#include "core/modelIR/Common.h"
+#include "mir/Common.h"
#include "ADT/SmallVector.h"
#ifndef _NNC_BACKEND_INTERPRETER_CORE_DOTDUMPER_
#define _NNC_BACKEND_INTERPRETER_CORE_DOTDUMPER_
-#include "core/modelIR/Visitor.h"
-#include "core/modelIR/ir_dot_builder.h"
+#include "mir/Visitor.h"
+#include "mir/ir_dot_builder.h"
namespace mir
{
#ifndef _NNC_CORE_IR_MODEL_OPERATION_H_
#define _NNC_CORE_IR_MODEL_OPERATION_H_
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Visitor.h"
+#include "mir/Shape.h"
+#include "mir/Visitor.h"
#include <deque>
#include <string>
#include <unordered_set>
public:
enum class Type {
#define HANDLE_OP(OpType, OpClass) OpType,
-#include "core/modelIR/operations/operations.lst.h"
+#include "mir/ops/operations.lst.h"
#undef HANDLE_OP
};
#define _NNC_CORE_LINALG_REGION_H_
#include <cstdint>
-#include "Shape.h"
+#include "mir/Shape.h"
namespace mir
{
#include <cassert>
#include <cstring>
-#include "core/modelIR/DataType.h"
+#include "mir/DataType.h"
namespace mir {
/**
#include "model_ir.pb.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/Shape.h"
+#include "mir/Tensor.h"
namespace mir
{
#include <cassert>
#include "ADT/SmallVector.h"
-#include "core/modelIR/Common.h"
+#include "mir/Common.h"
namespace mir {
#include <cassert>
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Index.h"
+#include "mir/Shape.h"
+#include "mir/Index.h"
namespace mir
{
#pragma once
-#include "core/modelIR/Shape.h"
-
-#include "core/modelIR/ExternalRegion.h"
-
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Shape.h"
+#include "mir/ExternalRegion.h"
+#include "mir/TensorVariant.h"
namespace mir
{
#include <cstring>
#include <memory>
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Index.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/TensorVariant.h"
+#include "mir/Shape.h"
+#include "mir/Index.h"
+#include "mir/ShapeRange.h"
namespace mir {
#include <memory>
#include <cassert>
-#include "core/modelIR/Index.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/DataType.h"
-#include "core/modelIR/Common.h"
+#include "mir/Index.h"
+#include "mir/Shape.h"
+#include "mir/DataType.h"
+#include "mir/Common.h"
namespace mir
{
//Forward declare operations as we don't need anything but references
namespace ops {
#define HANDLE_OP(OpType, OpClass) class OpClass;
-#include "operations/operations.lst.h"
+#include "mir/ops/operations.lst.h"
#undef HANDLE_OP
} // namespace ops
class IVisitor {
public:
#define HANDLE_OP(OpType, OpClass) virtual void visit(ops::OpClass&) = 0;
-#include "operations/operations.lst.h"
+#include "mir/ops/operations.lst.h"
#undef HANDLE_OP
virtual ~IVisitor() = default;
class Visitor : public IVisitor {
public:
#define HANDLE_OP(OpType, OpClass) virtual void visit(ops::OpClass&) override;
-#include "operations/operations.lst.h"
+#include "mir/ops/operations.lst.h"
#undef HANDLE_OP
~Visitor() override = default;
#include <sstream>
-#include "core/modelIR/ir_dot_node_info.h"
+#include "mir/ir_dot_node_info.h"
namespace mir
{
#ifndef NNCC_IR_NODE_DOT_BUILDER_H
#define NNCC_IR_NODE_DOT_BUILDER_H
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/operations/CommonProps.h"
-#include "core/modelIR/operations/PoolOp.h"
+#include "mir/Shape.h"
+#include "mir/ops/CommonProps.h"
+#include "mir/ops/PoolOp.h"
namespace mir
{
#ifndef _NNC_CORE_IR_MODEL_BATCH_NORM_H_
#define _NNC_CORE_IR_MODEL_BATCH_NORM_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_BIAS_ADD_H_
#define _NNC_CORE_IR_MODEL_BIAS_ADD_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Operation.h"
+#include "mir/TensorVariant.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_CAPPED_RELU_H_
#define _NNC_CORE_IR_MODEL_CAPPED_RELU_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_CONCAT_OP_H_
#define _NNC_CORE_IR_MODEL_CONCAT_OP_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_CONSTANT_H_
#define _NNC_CORE_IR_MODEL_CONSTANT_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_CONV_2D_H_
#define _NNC_CORE_IR_MODEL_CONV_2D_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
#include <vector>
namespace mir {
#ifndef _NNC_CORE_IR_MODEL_DECONV_2D_H_
#define _NNC_CORE_IR_MODEL_DECONV_2D_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/CommonProps.h"
+#include "mir/Operation.h"
+#include "mir/ops/CommonProps.h"
#include <vector>
namespace mir {
#ifndef _NNC_CORE_IR_MODEL_DEPTHWISE_CONV_2D_H_
#define _NNC_CORE_IR_MODEL_DEPTHWISE_CONV_2D_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
#include <vector>
namespace mir {
#ifndef _NNC_CORE_IR_MODEL_DROPOUT_H_
#define _NNC_CORE_IR_MODEL_DROPOUT_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_ELEMENTWISE_OP_H_
#define _NNC_CORE_IR_MODEL_ELEMENTWISE_OP_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_ELU_H_
#define _NNC_CORE_IR_MODEL_ELU_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_FULLY_CONNECTED_OP_H_
#define _NNC_CORE_IR_MODEL_FULLY_CONNECTED_OP_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Operation.h"
+#include "mir/TensorVariant.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_GATHER_H_
#define _NNC_CORE_IR_MODEL_GATHER_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_GEMM_OP_H_
#define _NNC_CORE_IR_MODEL_GEMM_OP_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Operation.h"
+#include "mir/TensorVariant.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_INPUT_H_
#define _NNC_CORE_IR_MODEL_INPUT_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_LEAKY_RELU_H_
#define _NNC_CORE_IR_MODEL_LEAKY_RELU_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_OUTPUT_H_
#define _NNC_CORE_IR_MODEL_OUTPUT_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NCC_CORE_IR_MODEL_PAD_H_
#define _NCC_CORE_IR_MODEL_PAD_H_
-#include "core/modelIR/Operation.h"
-
-#include "core/modelIR/Scalar.h"
+#include "mir/Operation.h"
+#include "mir/Scalar.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_POOL_H_
#define _NNC_CORE_IR_MODEL_POOL_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/CommonProps.h"
+#include "mir/Operation.h"
+#include "mir/ops/CommonProps.h"
#include <vector>
#include <cmath>
#ifndef _NNC_CORE_IR_MODEL_REDUCE_F_H_
#define _NNC_CORE_IR_MODEL_REDUCE_F_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
#include <vector>
namespace mir {
#ifndef _NNC_CORE_IR_MODEL_RELU_H_
#define _NNC_CORE_IR_MODEL_RELU_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
* limitations under the License.
*/
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_RESIZEOP_H_
#define _NNC_CORE_IR_MODEL_RESIZEOP_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/Shape.h"
+#include "mir/Operation.h"
+#include "mir/Shape.h"
#include <vector>
#include <cmath>
#ifndef _NNC_CORE_IR_MODEL_SCALE_H_
#define _NNC_CORE_IR_MODEL_SCALE_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_SIGMOID_H_
#define _NNC_CORE_IR_MODEL_SIGMOID_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_SLICE_H_
#define _NNC_CORE_IR_MODEL_SLICE_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_SOFTMAX_H_
#define _NNC_CORE_IR_MODEL_SOFTMAX_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_SQRT_H_
#define _NNC_CORE_IR_MODEL_SQRT_H_
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/CommonProps.h"
+#include "mir/Operation.h"
+#include "mir/ops/CommonProps.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_SQUEEZE_OP_H_
#define _NNC_CORE_IR_MODEL_SQUEEZE_OP_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
#include <algorithm>
namespace mir {
#ifndef _NNC_CORE_IR_MODEL_TANH_H_
#define _NNC_CORE_IR_MODEL_TANH_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
namespace mir {
namespace ops {
#ifndef _NNC_CORE_IR_MODEL_TRANSPOSE_H_
#define _NNC_CORE_IR_MODEL_TRANSPOSE_H_
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
#include <vector>
namespace mir {
#ifndef NNCC_PASSDATA_H
#define NNCC_PASSDATA_H
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Graph.h"
+#include "mir/TensorVariant.h"
namespace nnc
#define FRONTEND_COMMON_INCLUDE_NN_IMPORTER_
#include "pass/Pass.h"
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
namespace nnc {
#include <memory>
#include <set>
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Shape.h"
+#include "mir/TensorVariant.h"
namespace nnc {
#ifndef NNCC_SHAPE_HELPER_H
#define NNCC_SHAPE_HELPER_H
-#include "core/modelIR/Shape.h"
+#include "mir/Shape.h"
namespace nnc
{
#include "pass/Pass.h"
#include "pass/PassData.h"
-#include "core/modelIR/IrDotDumper.h"
+#include "mir/IrDotDumper.h"
namespace nnc {
#ifndef _NNC_BACKEND_INTERPRETER_CORE_INTERPRETER_
#define _NNC_BACKEND_INTERPRETER_CORE_INTERPRETER_
-#include "core/modelIR/Visitor.h"
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Visitor.h"
+#include "mir/Operation.h"
+#include "mir/TensorVariant.h"
#include <string>
#include <unordered_map>
#include <vector>
#ifndef NNCC_INTERPRETERPASS_H
#define NNCC_INTERPRETERPASS_H
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Shape.h"
+#include "mir/ops/InputOp.h"
+#include "mir/TensorVariant.h"
+#include "mir/Shape.h"
#include "pass/Pass.h"
#include "pass/PassData.h"
#ifndef _NNC_SOFT_BACKEND_BASE_GENERATOR_H_
#define _NNC_SOFT_BACKEND_BASE_GENERATOR_H_
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
#include "pass/Pass.h"
#include "pass/PassData.h"
#include "AclCppOpGenerator.h"
#include "passes/acl_soft_backend/AclCppException.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/ShapeRange.h"
+#include "mir/TensorUtil.h"
#include "option/Options.h"
-#include "core/modelIR/Tensor.h"
-
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/Tensor.h"
+
+#include "mir/Operation.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include <algorithm>
#ifndef _NNC_ACL_CPP_OP_GENERATOR_H_
#define _NNC_ACL_CPP_OP_GENERATOR_H_
-#include "core/modelIR/Visitor.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/Graph.h"
+#include "mir/Visitor.h"
+#include "mir/TensorVariant.h"
+#include "mir/Operation.h"
+#include "mir/Graph.h"
#include "ArtifactModel.h"
#include "ArtifactGeneratorCppCode.h"
#include "ArtifactGeneratorCppDecl.h"
#include "caffe2_op_types.h"
#include "caffe2_op_creator.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/Shape.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/Shape.h"
#include "pass/PassException.h"
#include "caffe2_proto_helper.h"
* limitations under the License.
*/
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
-
-#include "core/modelIR/Index.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/TransposeOp.h"
+
+#include "mir/Index.h"
+#include "mir/Shape.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
+#include "mir/TensorUtil.h"
#include "passes/common_frontend/op_creator_helper.h"
#include "passes/common_frontend/shape_helper.h"
#include <vector>
#include <memory>
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/operations/CommonProps.h"
-#include "core/modelIR/Shape.h"
+#include "mir/Graph.h"
+#include "mir/Operation.h"
+#include "mir/TensorVariant.h"
+#include "mir/ops/CommonProps.h"
+#include "mir/Shape.h"
#include "caffe2/proto/caffe2.pb.h"
#include "caffe_op_creator.h"
#include "caffe_op_types.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/Shape.h"
+#include "mir/TensorUtil.h"
#include "pass/PassException.h"
#include "passes/common_frontend/op_creator_helper.h"
* limitations under the License.
*/
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
-
-#include "core/modelIR/Index.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
+
+#include "mir/Index.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
+#include "mir/TensorUtil.h"
#include "passes/common_frontend/shape_helper.h"
#include "passes/common_frontend/op_creator_helper.h"
#include <vector>
#include <memory>
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/operations/CommonProps.h"
-#include "core/modelIR/Shape.h"
+#include "mir/Graph.h"
+#include "mir/TensorVariant.h"
+#include "mir/ops/CommonProps.h"
+#include "mir/Shape.h"
#include "caffe/proto/caffe.pb.h"
#include "pass/PassException.h"
#include "passes/common_frontend/op_creator_helper.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Shape.h"
+#include "mir/ShapeRange.h"
+#include "mir/TensorVariant.h"
#include <set>
*/
#include "passes/dot_dumper/DumperPass.h"
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
#include "pass/PassException.h"
#include <fstream>
#include "passes/interpreter/Interpreter.h"
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include "ops/BatchNorm.h"
#include "ops/Bias.h"
#include <H5Cpp.h>
#endif // NNC_HDF5_SUPPORTED
-#include "core/modelIR/Shape.h"
+#include "mir/Shape.h"
#include "pass/Pass.h"
#include "pass/PassData.h"
#include "passes/interpreter/Interpreter.h"
#include "passes/interpreter/InterpreterPass.h"
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
namespace nnc {
#include "OperationImpl.h"
#include "Fill.h"
-#include "core/modelIR/operations/BatchNormOp.h"
+#include "mir/ops/BatchNormOp.h"
namespace nnc
{
#define _NNC_BACKEND_INTERPRETER_BIAS_
#include "OperationImpl.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/Tensor.h"
namespace nnc {
*/
#include "Conv2D.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/ShapeRange.h"
+#include "mir/TensorUtil.h"
namespace nnc {
#define _NNC_CORE_BACKEND_INTERPRETER_CONV2D_IMPL_
#include "OperationImpl.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/Tensor.h"
namespace nnc {
#include <cstdlib>
-#include "core/modelIR/TensorUtil.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/TensorUtil.h"
+#include "mir/ShapeRange.h"
#include "DeConv2D.h"
#include "common.h"
#define _NNC_CORE_BACKEND_INTERPRETER_DECONV2D_IMPL_
#include "OperationImpl.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/Tensor.h"
namespace nnc {
*/
#include "DepthwiseConv2D.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
namespace nnc {
#define _NNC_CORE_BACKEND_INTERPRETER_DEPTHWISE_CONV2D_IMPL_
#include "OperationImpl.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/Tensor.h"
namespace nnc {
#include "OperationImpl.h"
#include "Fill.h"
-#include "core/modelIR/operations/DropoutOp.h"
+#include "mir/ops/DropoutOp.h"
namespace nnc
{
#define _NNC_CORE_BACKEND_INTERPRETER_FILL_
#include "OperationImpl.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
#include <functional>
namespace nnc {
#define _NNC_CORE_BACKEND_INTERPRETER_FULLYCONNECTED_
#include "OperationImpl.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/Tensor.h"
+#include "mir/ShapeRange.h"
namespace nnc {
#define _NNC_CORE_BACKEND_INTERPRETER_GATHER_
#include "OperationImpl.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/Tensor.h"
namespace nnc {
#define _NNC_CORE_BACKEND_INTERPRETER_GEMM_
#include "OperationImpl.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/Tensor.h"
+#include "mir/TensorVariant.h"
+#include "mir/ShapeRange.h"
namespace nnc {
template<typename T>
#ifndef _NNC_CORE_BACKEND_INTERPRETER_OPERATION_IMPL_
#define _NNC_CORE_BACKEND_INTERPRETER_OPERATION_IMPL_
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Shape.h"
+#include "mir/TensorVariant.h"
+#include "mir/Shape.h"
#include <vector>
namespace nnc {
* limitations under the License.
*/
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
#include "Pad.h"
#define _NNC_CORE_BACKEND_INTERPRETER_PAD_IMPL_
#include "OperationImpl.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/PadOp.h"
+#include "mir/Tensor.h"
namespace nnc {
/**
#include <iostream>
#include <limits>
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
#include "Pool.h"
#include "common.h"
#define _NNC_CORE_BACKEND_INTERPRETER_POOL_
#include "OperationImpl.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/CommonProps.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/CommonProps.h"
+#include "mir/Tensor.h"
namespace nnc
{
#include <functional>
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/Shape.h"
+#include "mir/Tensor.h"
+#include "mir/ShapeRange.h"
#include "OperationImpl.h"
#include "Fill.h"
#ifndef _NNC_CORE_BACKEND_INTERPRETER_RESHAPE_IMPL_
#define _NNC_CORE_BACKEND_INTERPRETER_RESHAPE_IMPL_
-#include "core/modelIR/operations/ReshapeOp.h"
+#include "mir/ops/ReshapeOp.h"
#include "OperationImpl.h"
#include "Fill.h"
#define _NNC_CORE_BACKEND_INTERPRETER_SCALE_IMPL_
#include "OperationImpl.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/Tensor.h"
namespace nnc {
#include <cmath>
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
#include "OperationImpl.h"
#include "Reduce.h"
*/
#include "Transpose.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/Tensor.h"
+#include "mir/ShapeRange.h"
namespace nnc {
#define _NNC_CORE_BACKEND_INTERPRETER_TRANSPOSE_
#include "OperationImpl.h"
-#include "core/modelIR/operations/TransposeOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/TransposeOp.h"
+#include "mir/Tensor.h"
namespace nnc {
#pragma once
-#include "core/modelIR/Index.h"
-#include "core/modelIR/Shape.h"
+#include "mir/Index.h"
+#include "mir/Shape.h"
namespace nnc
{
#include <cmath>
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
#include "conv_FFT.h"
#include "common.h"
#define _NNC_CORE_BACKEND_INTERPRETER_CONV2D_FFT_IMPL_
#include "OperationImpl.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/Tensor.h"
#include <complex>
namespace nnc
#include "ONNXPerfectHash.h"
#include "ONNXOpCreator.h"
-#include "core/modelIR/IrDotDumper.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/TensorUtil.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/IrDotDumper.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/TransposeOp.h"
+#include "mir/Operation.h"
+#include "mir/Shape.h"
+#include "mir/TensorUtil.h"
+#include "mir/TensorVariant.h"
#include "onnx/onnx_pb.h"
#include "onnx/proto_utils.h"
#include "passes/common_frontend/model_allocation.h"
#include <string>
#include <onnx/onnx.pb.h>
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
#include "ONNXOpType.h"
#include "ONNXOpCreator.h"
#include "passes/common_frontend/NNImporter.h"
#include "ONNXOpCreator.h"
#include "ONNXImporterImpl.h"
-#include "core/modelIR/Index.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/Scalar.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/TensorUtil.h"
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
+#include "mir/Index.h"
+#include "mir/Graph.h"
+#include "mir/Scalar.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
+#include "mir/TensorUtil.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/TransposeOp.h"
+#include "mir/ops/ElementwiseOp.h"
#include "passes/common_frontend/op_creator_helper.h"
#include "passes/common_frontend/shape_helper.h"
#include "pass/PassException.h"
#ifndef NNCC_ONNX_OP_CREATOR_H
#define NNCC_ONNX_OP_CREATOR_H
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/operations/CommonProps.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/Shape.h"
+#include "mir/Graph.h"
+#include "mir/TensorVariant.h"
+#include "mir/ops/CommonProps.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/Shape.h"
#include "onnx/onnx.pb.h"
#include "ONNXOpType.h"
#include <algorithm>
#include "passes/optimizations/CombineTransposes.h"
-#include "core/modelIR/operations/TransposeOp.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/GraphPatternMatcher.h"
+#include "mir/ops/TransposeOp.h"
+#include "mir/Graph.h"
+#include "mir/GraphPatternMatcher.h"
namespace nnc {
#include "passes/soft_backend/CPPGenerator.h"
-#include "core/modelIR/Operation.h"
+#include "mir/Operation.h"
#include "ModelAnalyzer.h"
#include "SBSerializer.h"
#include "option/Options.h"
#include "ModelAnalyzer.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Graph.h"
-
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/Shape.h"
+#include "mir/ShapeRange.h"
+#include "mir/Graph.h"
+
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include <type_traits>
#include <limits>
#include "SequencedIR.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/Visitor.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Operation.h"
+#include "mir/Graph.h"
+#include "mir/Visitor.h"
+#include "mir/Shape.h"
+#include "mir/TensorVariant.h"
+#include "mir/Operation.h"
#include <vector>
#include <map>
*/
#include "SBSerializer.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/ShapeRange.h"
+#include "mir/TensorUtil.h"
#include "CommonData.def"
-#include "core/modelIR/operations/BatchNormOp.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/DropoutOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/GatherOp.h"
-#include "core/modelIR/operations/GemmOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/ops/BatchNormOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/DropoutOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/GatherOp.h"
+#include "mir/ops/GemmOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include "pass/PassException.h"
#include <algorithm>
#ifndef _NNC_SOFT_BACKEND_SERIALIZER_H_
#define _NNC_SOFT_BACKEND_SERIALIZER_H_
-#include "core/modelIR/Visitor.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Visitor.h"
+#include "mir/Shape.h"
+#include "mir/TensorVariant.h"
#include "ModelAnalyzer.h"
#include <vector>
#ifndef _NNC_SOFT_BACKEND_SEQUENCED_IR_H_
#define _NNC_SOFT_BACKEND_SEQUENCED_IR_H_
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Operation.h"
+#include "mir/Shape.h"
+#include "mir/Operation.h"
#include <string>
#include <vector>
#include "schema_generated.h"
#include "tflite_importer.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/OutputOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/OutputOp.h"
#include "tflite_op_creator.h"
#include "passes/common_frontend/op_creator_helper.h"
#include "passes/common_frontend/model_allocation.h"
#include "tflite_op_creator.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/TensorUtil.h"
-#include "core/modelIR/TensorVariant.h"
+#include "mir/Graph.h"
+#include "mir/TensorUtil.h"
+#include "mir/TensorVariant.h"
namespace nnc {
#include "tflite_op_creator.h"
#include "schema_generated.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include "pass/PassException.h"
#include "option/Options.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/TensorUtil.h"
+#include "mir/Shape.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
+#include "mir/TensorUtil.h"
using namespace ::tflite;
#include <memory>
#include <cstdint>
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Scalar.h"
-#include "core/modelIR/Shape.h"
-
-#include "core/modelIR/operations/CommonProps.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
+#include "mir/Graph.h"
+#include "mir/TensorVariant.h"
+#include "mir/Scalar.h"
+#include "mir/Shape.h"
+
+#include "mir/ops/CommonProps.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ElementwiseOp.h"
#include "schema_generated.h"
#include "passes/common_frontend/shape_helper.h"
#include "support/CommandLine.h"
#include "option/Options.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/ReluOp.h"
+#include "mir/Graph.h"
+#include "mir/Shape.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/ReluOp.h"
#include "passes/soft_backend/CPPGenerator.h"
#include "AclCppOpGenerator.h"
// MIR
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/Graph.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/ConstantOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
#include "gtest/gtest.h"
#include <gtest/gtest.h>
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/ReluOp.h"
+#include "mir/Graph.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/ReluOp.h"
namespace {
#include <gtest/gtest.h>
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/ReluOp.h"
+#include "mir/Graph.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/ReluOp.h"
namespace {
#include <gtest/gtest.h>
-#include "core/modelIR/Shape.h"
-#include "core/modelIR/Index.h"
+#include "mir/Shape.h"
+#include "mir/Index.h"
using namespace mir;
* limitations under the License.
*/
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/SqueezeOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/Shape.h"
+#include "mir/Graph.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/SqueezeOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/Shape.h"
#include <vector>
*/
#include "gtest/gtest.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/ShapeRange.h"
using namespace mir;
* limitations under the License.
*/
-#include "core/modelIR/TensorVariant.h"
+#include "mir/TensorVariant.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
-#include "core/modelIR/Deserializer.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Tensor.h"
+#include "mir/Deserializer.h"
+#include "mir/ShapeRange.h"
+#include "mir/Tensor.h"
using namespace mir;
* limitations under the License.
*/
-#include "core/modelIR/Operation.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
+#include "mir/Operation.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/SoftmaxOp.h"
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <cmath>
-#include "core/modelIR/Serializer.h"
-#include "core/modelIR/ShapeRange.h"
+#include "mir/Serializer.h"
+#include "mir/ShapeRange.h"
using namespace mir;
*/
#include "passes/optimizations/CombineTransposes.h"
-#include "core/modelIR/operations/TransposeOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/ConstantOp.h"
+#include "mir/ops/TransposeOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/ConstantOp.h"
#include <gtest/gtest.h>
#include <dlfcn.h>
-#include "core/modelIR/Graph.h"
+#include "mir/Graph.h"
#include "support/CommandLine.h"
#include "pass/Pass.h"
#include "pass/PassData.h"
#include "SBSerializer.h"
// operations part
-#include "core/modelIR/operations/BiasAddOp.h"
-#include "core/modelIR/operations/CappedReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
-#include "core/modelIR/operations/Conv2DOp.h"
-#include "core/modelIR/operations/Deconv2DOp.h"
-#include "core/modelIR/operations/DepthwiseConv2DOp.h"
-#include "core/modelIR/operations/ElementwiseOp.h"
-#include "core/modelIR/operations/EluOp.h"
-#include "core/modelIR/operations/FullyConnectedOp.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/LeakyReluOp.h"
-#include "core/modelIR/operations/OutputOp.h"
-#include "core/modelIR/operations/PadOp.h"
-#include "core/modelIR/operations/PoolOp.h"
-#include "core/modelIR/operations/ReduceFOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ReshapeOp.h"
-#include "core/modelIR/operations/ResizeOp.h"
-#include "core/modelIR/operations/ScaleOp.h"
-#include "core/modelIR/operations/SigmoidOp.h"
-#include "core/modelIR/operations/SliceOp.h"
-#include "core/modelIR/operations/SoftmaxOp.h"
-#include "core/modelIR/operations/SqrtOp.h"
-#include "core/modelIR/operations/TanhOp.h"
-#include "core/modelIR/operations/TransposeOp.h"
+#include "mir/ops/BiasAddOp.h"
+#include "mir/ops/CappedReluOp.h"
+#include "mir/ops/ConcatOp.h"
+#include "mir/ops/Conv2DOp.h"
+#include "mir/ops/Deconv2DOp.h"
+#include "mir/ops/DepthwiseConv2DOp.h"
+#include "mir/ops/ElementwiseOp.h"
+#include "mir/ops/EluOp.h"
+#include "mir/ops/FullyConnectedOp.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/LeakyReluOp.h"
+#include "mir/ops/OutputOp.h"
+#include "mir/ops/PadOp.h"
+#include "mir/ops/PoolOp.h"
+#include "mir/ops/ReduceFOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ReshapeOp.h"
+#include "mir/ops/ResizeOp.h"
+#include "mir/ops/ScaleOp.h"
+#include "mir/ops/SigmoidOp.h"
+#include "mir/ops/SliceOp.h"
+#include "mir/ops/SoftmaxOp.h"
+#include "mir/ops/SqrtOp.h"
+#include "mir/ops/TanhOp.h"
+#include "mir/ops/TransposeOp.h"
// various headers
-#include "core/modelIR/TensorVariant.h"
-#include "core/modelIR/Tensor.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/ShapeRange.h"
-#include "core/modelIR/Scalar.h"
+#include "mir/TensorVariant.h"
+#include "mir/Tensor.h"
+#include "mir/Graph.h"
+#include "mir/ShapeRange.h"
+#include "mir/Scalar.h"
#include "passes/interpreter/Interpreter.h"
*/
#include "passes/soft_backend/CPPGenerator.h"
-#include "core/modelIR/operations/ReluOp.h"
+#include "mir/ops/ReluOp.h"
#include <gtest/gtest.h>
*/
#include "ModelAnalyzer.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/operations/InputOp.h"
-#include "core/modelIR/operations/ReluOp.h"
-#include "core/modelIR/operations/ConcatOp.h"
+#include "mir/Graph.h"
+#include "mir/ops/InputOp.h"
+#include "mir/ops/ReluOp.h"
+#include "mir/ops/ConcatOp.h"
#include <gtest/gtest.h>
#include "support/CommandLine.h"
#include "option/Options.h"
#include "caffe2_importer.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/IrDotDumper.h"
+#include "mir/Graph.h"
+#include "mir/IrDotDumper.h"
#include "pass/PassException.h"
using namespace nnc;
#include "support/CommandLine.h"
#include "option/Options.h"
#include "caffe_importer.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/IrDotDumper.h"
+#include "mir/Graph.h"
+#include "mir/IrDotDumper.h"
#include "pass/PassException.h"
using namespace nnc;
#include "pass/PassException.h"
#include "option/Options.h"
#include "tflite_importer.h"
-#include "core/modelIR/Graph.h"
-#include "core/modelIR/IrDotDumper.h"
+#include "mir/Graph.h"
+#include "mir/IrDotDumper.h"
using namespace nnc;
using namespace mir;