Skip to content

Commit

Permalink
[onert-micro] fix wrong namespace use in import ns (#14495)
Browse files Browse the repository at this point in the history
Fix strange namespace use in onert_micro::import ns

ONE-DCO-1.0-Signed-off-by: Chunseok Lee <[email protected]>
  • Loading branch information
chunseoklee authored Dec 26, 2024
1 parent aa38dda commit 1587315
Show file tree
Hide file tree
Showing 70 changed files with 633 additions and 82 deletions.
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Abs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleAbs(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleAbs(const OMConfigureArgs &config_args)
{
return onert_micro::import::helpers::configure_SISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleAdd(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleAdd(const OMConfigureArgs &config_args)
{
return import::helpers::configure_TISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/AddN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleAddN(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleAddN(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -79,3 +84,6 @@ OMStatus onert_micro::import::configure_kernel_CircleAddN(const OMConfigureArgs

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/ArgMax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleArgMax(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleArgMax(const OMConfigureArgs &config_args)
{
return helpers::configure_arg_kernel_common(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/ArgMin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleArgMin(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleArgMin(const OMConfigureArgs &config_args)
{
return helpers::configure_arg_kernel_common(config_args);
}

} // namespace import
} // namespace onert_micro
11 changes: 9 additions & 2 deletions onert-micro/onert-micro/src/import/kernels/AveragePool2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus
onert_micro::import::configure_kernel_CircleAveragePool2D(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleAveragePool2D(const OMConfigureArgs &config_args)
{
return import::helpers::configure_pooling_kernel_common(config_args);
}

} // namespace import
} // namespace onert_micro
12 changes: 10 additions & 2 deletions onert-micro/onert-micro/src/import/kernels/BatchToSpaceND.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleBatchToSpaceND(
const onert_micro::import::OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus
configure_kernel_CircleBatchToSpaceND(const onert_micro::import::OMConfigureArgs &config_args)
{
return helpers::configure_spaces_batches_nd_kernel_common(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleCast(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleCast(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand All @@ -57,3 +62,6 @@ OMStatus onert_micro::import::configure_kernel_CircleCast(const OMConfigureArgs

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Ceil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleCeil(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleCeil(const OMConfigureArgs &config_args)
{
return onert_micro::import::helpers::configure_SISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
11 changes: 9 additions & 2 deletions onert-micro/onert-micro/src/import/kernels/Concatenation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus
onert_micro::import::configure_kernel_CircleConcatenation(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleConcatenation(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -92,3 +96,6 @@ onert_micro::import::configure_kernel_CircleConcatenation(const OMConfigureArgs

return Ok;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Conv2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleConv2D(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleConv2D(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -114,3 +119,6 @@ OMStatus onert_micro::import::configure_kernel_CircleConv2D(const OMConfigureArg

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Cos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleCos(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleCos(const OMConfigureArgs &config_args)
{
return onert_micro::import::helpers::configure_SISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
11 changes: 9 additions & 2 deletions onert-micro/onert-micro/src/import/kernels/DepthwiseConv2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus
onert_micro::import::configure_kernel_CircleDepthwiseConv2D(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleDepthwiseConv2D(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -135,3 +139,6 @@ onert_micro::import::configure_kernel_CircleDepthwiseConv2D(const OMConfigureArg

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Dequantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleDequantize(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleDequantize(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -71,3 +76,6 @@ OMStatus onert_micro::import::configure_kernel_CircleDequantize(const OMConfigur

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Div.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleDiv(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleDiv(const OMConfigureArgs &config_args)
{
return import::helpers::configure_TISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Elu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleElu(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleElu(const OMConfigureArgs &config_args)
{
return onert_micro::import::helpers::configure_SISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Equal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleEqual(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleEqual(const OMConfigureArgs &config_args)
{
const circle::Tensor *input1;
const circle::Tensor *input2;
Expand All @@ -54,3 +59,6 @@ OMStatus onert_micro::import::configure_kernel_CircleEqual(const OMConfigureArgs

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleExp(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleExp(const OMConfigureArgs &config_args)
{
return onert_micro::import::helpers::configure_SISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/ExpandDims.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleExpandDims(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleExpandDims(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -97,3 +102,6 @@ OMStatus onert_micro::import::configure_kernel_CircleExpandDims(const OMConfigur

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Fill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ constexpr uint32_t outputTensorIdx = 0;

} // namespace

OMStatus onert_micro::import::configure_kernel_CircleFill(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleFill(const OMConfigureArgs &config_args)
{
OMRuntimeContext &runtime_context = config_args.runtime_context;
uint16_t op_index = config_args.kernel_index;
Expand Down Expand Up @@ -65,3 +70,6 @@ OMStatus onert_micro::import::configure_kernel_CircleFill(const OMConfigureArgs

return status;
}

} // namespace import
} // namespace onert_micro
10 changes: 9 additions & 1 deletion onert-micro/onert-micro/src/import/kernels/Floor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
using namespace onert_micro;
using namespace onert_micro::core;

OMStatus onert_micro::import::configure_kernel_CircleFloor(const OMConfigureArgs &config_args)
namespace onert_micro
{
namespace import
{

OMStatus configure_kernel_CircleFloor(const OMConfigureArgs &config_args)
{
return onert_micro::import::helpers::configure_SISO_kernel(config_args);
}

} // namespace import
} // namespace onert_micro
Loading

0 comments on commit 1587315

Please sign in to comment.