Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert] Update deprecated API implementation #13173

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

hseok-oh
Copy link
Contributor

This commit updates deprecated API implementation to use common function.
It includes unittest for deprecated API.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh [email protected]

This commit updates deprecated API implementation to use common function.
It includes unittest for deprecated API.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
@hseok-oh hseok-oh added the PR/ready for review It is ready to review. Please review it. label Jun 12, 2024
@hseok-oh hseok-oh requested a review from a team June 12, 2024 10:04
@hseok-oh hseok-oh added the approval: 1 Require at least 1 approval label Jun 12, 2024
runtime/onert/api/nnfw/src/nnfw_api.cc Outdated Show resolved Hide resolved
runtime/onert/api/nnfw/src/nnfw_api.cc Outdated Show resolved Hide resolved
EXPECT_EQ(nnfw_prepare_pipeline(nullptr, nullptr), NNFW_STATUS_DEPRECATED_API);
EXPECT_EQ(nnfw_push_pipeline_input(nullptr, nullptr, nullptr), NNFW_STATUS_DEPRECATED_API);
EXPECT_EQ(nnfw_pop_pipeline_output(nullptr, nullptr), NNFW_STATUS_DEPRECATED_API);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nnfw_set_op_backend may be deprecated according to api description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. But I didn't add test for nnfw_set_op_backend because internal implementation in compiler(scheduler) is still remained.
I'll update that after removing internal implementation.

Co-authored-by: Jang Jiseob <[email protected]>
Copy link
Contributor

@jyoungyun jyoungyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@glistening glistening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ragmani ragmani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hseok-oh hseok-oh merged commit ead5705 into Samsung:master Jun 13, 2024
9 checks passed
@hseok-oh hseok-oh deleted the deprecated_api_test branch June 13, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: 1 Require at least 1 approval PR/ready for review It is ready to review. Please review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants