[onert] Add model verification for I/O consistency#16402
Merged
hseok-oh merged 2 commits intoSamsung:masterfrom Feb 26, 2026
Merged
[onert] Add model verification for I/O consistency#16402hseok-oh merged 2 commits intoSamsung:masterfrom
hseok-oh merged 2 commits intoSamsung:masterfrom
Conversation
This commit adds verification step to ensure loaded models have matching input/output counts with the pipeline configuration. ONE-DCO-1.0-Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
ONE-DCO-1.0-Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Contributor
Author
I posted an additional commit for unittest. ❯ ./onert/backend/trix/test_onert_trix_backend --gtest_filter="BulkPipeline*"
Running main() from /home/ljh/workspace/soca/one.forked/runtime/externals/GTEST-1.15.2/googletest/src/gtest_main.cc
Note: Google Test filter = BulkPipeline*
[==========] Running 11 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 3 tests from BulkPipelineBufferTest
[ RUN ] BulkPipelineBufferTest.test_allocate
[ OK ] BulkPipelineBufferTest.test_allocate (0 ms)
[ RUN ] BulkPipelineBufferTest.test_deallocate
[ OK ] BulkPipelineBufferTest.test_deallocate (0 ms)
[ RUN ] BulkPipelineBufferTest.test_fillFromFile
[ OK ] BulkPipelineBufferTest.test_fillFromFile (0 ms)
[----------] 3 tests from BulkPipelineBufferTest (0 ms total)
[----------] 4 tests from BulkPipelineManagerTest
[ RUN ] BulkPipelineManagerTest.test_initilize
[ OK ] BulkPipelineManagerTest.test_initilize (0 ms)
[ RUN ] BulkPipelineManagerTest.test_shutdown
[ OK ] BulkPipelineManagerTest.test_shutdown (0 ms)
[ RUN ] BulkPipelineManagerTest.test_execute
[ OK ] BulkPipelineManagerTest.test_execute (0 ms)
[ RUN ] BulkPipelineManagerTest.test_verify_models
Failed to initialize pipeline: Model model_path_0 has different number of inputs/outputs
[ OK ] BulkPipelineManagerTest.test_verify_models (0 ms)
[----------] 4 tests from BulkPipelineManagerTest (0 ms total)
[----------] 4 tests from BulkPipelineModelTest
[ RUN ] BulkPipelineModelTest.test_model_creation
[ OK ] BulkPipelineModelTest.test_model_creation (0 ms)
[ RUN ] BulkPipelineModelTest.test_model_run
[ OK ] BulkPipelineModelTest.test_model_run (0 ms)
[ RUN ] BulkPipelineModelTest.test_model_release
[ OK ] BulkPipelineModelTest.test_model_release (0 ms)
[ RUN ] BulkPipelineModelTest.test_async_fill
Failed to fill buffers asynchronously: Buffers not properly initialized for: next_model_path
[ OK ] BulkPipelineModelTest.test_async_fill (0 ms)
[----------] 4 tests from BulkPipelineModelTest (0 ms total)
[----------] Global test environment tear-down
[==========] 11 tests from 3 test suites ran. (0 ms total)
[ PASSED ] 11 tests.
|
hseok-oh
approved these changes
Feb 26, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds verification step to ensure loaded models have matching input/output counts with the pipeline configuration.
ONE-DCO-1.0-Signed-off-by: Jonghwa Lee jonghwa3.lee@samsung.com