-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[onert-micro] Reducing code duplication for FloorDiv, FloorMod, Min, …
…Max, GatherND Refactoring kernels: FloorDiv, FloorMod, Min, Max, GatherND for [issue](#13272) ONE-DCO-1.0-Signed-off-by: Evgenii Maltsev [email protected]
- Loading branch information
Showing
8 changed files
with
185 additions
and
237 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
onert-micro/onert-micro/include/execute/kernels/ReadDataCommon.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2024 Samsung Electronics Co., Ltd. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef ONERT_MICRO_EXECUTE_KERNELS_READDATACOMMON_H | ||
#define ONERT_MICRO_EXECUTE_KERNELS_READDATACOMMON_H | ||
|
||
#include "OMStatus.h" | ||
#include "core/OMKernelData.h" | ||
#include "core/OMRuntimeShape.h" | ||
#include "execute/OMRuntimeKernel.h" | ||
#include "execute/OMKernelExecutionBuilder.h" | ||
|
||
namespace onert_micro | ||
{ | ||
namespace execute | ||
{ | ||
|
||
OMStatus readKernelDataTISO(const OMExecuteArgs &execute_args, uint8_t *&input_data1, | ||
uint8_t *&input_data2, uint8_t *&output_data, | ||
core::OMRuntimeShape &input1_shape_ref, | ||
core::OMRuntimeShape &input2_shape_ref, | ||
core::OMRuntimeShape &output_shape_ref, | ||
circle::TensorType &tensor_type); | ||
|
||
} // namespace execute | ||
} // namespace onert_micro | ||
|
||
#endif // ONERT_MICRO_EXECUTE_KERNELS_READDATACOMMON_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.