-
Notifications
You must be signed in to change notification settings - Fork 82
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
[WIP] PathProperty -p repartion for openvino backbone and layer #2937
Draft
piotrrak
wants to merge
12
commits into
nnstreamer:main
Choose a base branch
from
my-contrib:path_property
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
36c99b3
to
5a08c5b
Compare
It is common to have an configuration property that includes paths, introduce new property kind; Its implementation is based on portable <filesystem> library. This frees us from path parsing, handing in cross-platform manner. Also it provides basic file operations, like creating directoris. Signed-off-by: Piotr Rak <[email protected]>
Specialized helper for file model path. Its main purpouse is to ensure file path meets criterions of given type model files. It covers PropsTflModelPath (file readability and correct file extension), while extending it to set of possible file extensions. Signed-off-by: Piotr Rak <[email protected]>
676609d
to
c3a4f7e
Compare
This allows to build test-suite w/o tensorflow-lite. Probably can be dropped when we'll stop using python-env provided OpenVINO.
Adds sanity tests for path property.
Fixes build with gtest as subproject.
This avoids opening file stream. Signed-off-by: Piotr Rak <[email protected]>
That should be cheap enough using stat() or alike underneath. Signed-off-by: Piotr Rak <[email protected]>
This had potential to overflow for files larger than 4GB (2^32)B This days it is bit small. This change is NOT the real fix of this potential issue, but makes it (sample_size * RawFileDataProducer::pixel_size) times less likely. The return type of this function still holds just 2^32-1. Signed-off-by: Piotr Rak <[email protected]>
Signed-off-by: Piotr Rak <[email protected]>
c3a4f7e
to
dfdefb1
Compare
Signed-off-by: Piotr Rak <[email protected]>
Signed-off-by: Piotr Rak <[email protected]>
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.
DR Description
This PR is preparation for OpenVINO backend.
PathProperty
that represents filesystem pathModelPathProperty
that facilitates checking if path points to file with given set of the file extensions.The ModelPathProperty
generalizesnntrainer::PropsTflModelPath
and will be used by OpenVINO model path property.Since OpenVINO has multiple frontends there is need to filter paths with multiple possible extensions.
In addition this allows to switch
Property<std::string>
toPathProperty
and use c++17std::filesystem
library facilities for properties that are paths.OpenVINO frontends are:
Self evaluation:
How to evaluate:
TODO
Add signed-off message automatically by running $git commit -s ... command.
$ git push origin <your_branch_name>