-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ONNX] Introduce GraphIterator interface in frontend #32325
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
Conversation
2f2d379
to
3addff7
Compare
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
472760f
to
fca9980
Compare
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
Signed-off-by: Maxim Vafin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I managed to review a (smaller) half of the feature. I am approving for the sake of having real-world tests after merging. Let's discuss how to proceed/polish it further.
|
||
#include <openvino/openvino.hpp> | ||
|
||
#include "../frontend/src/core/graph_iterator_proto.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, handle it on the buildsystem/CMake level, so that reaching paths from different trees is not needed:
// Proper way:
// - let the "openvino::frontend::onnx" target export the "INTERFACE_INCLUDE_DIRECTORIES" property
// - linking the test executable with that target will import all necessary include paths
#include "frontend/src/core/graph_iterator_proto.hpp"
From a quick inspection, I think it's already happening. Maybe worth trying (and removing the ../
part from the path)?
onnx_reader_external_data.cpp | ||
skip_tests_config.cpp) | ||
skip_tests_config.cpp | ||
../frontend/src/core/graph_iterator_proto.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should not be built here. Consider creating a proper helper target in frontend/src/core
that creates an object libarary
(or a static one) from graph_iterator_proto.cpp
and decoder_proto.cpp
. Then link with it here.
const std::shared_ptr<TelemetryExtension>& telemetry = {}); | ||
explicit InputModel(const ov::frontend::onnx::GraphIterator::Ptr& graph_iterator, InputModel* parent_model); | ||
|
||
///// Searching for places ///// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: make it proper Doxygen:
/// Searching for inputs
std::vector<ov::frontend::Place::Ptr> get_inputs() const override;
/// Searching for places by tensor name
ov::frontend::Place::Ptr get_place_by_tensor_name(const std::string& tensorName) const override;
Same goes for similar constructs in this header.
Signed-off-by: Maxim Vafin <[email protected]>
Applied some feedback, will do the required improvements in next PRs |
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Tensor layout related properties are calculated once and used those cached values during per element offset calculation. [ONNX] Introduce GraphIterator interface in frontend (openvinotoolkit#32325) - *Introduce GraphIterator for ONNX* - *CVS-156050* --------- Signed-off-by: Maxim Vafin <[email protected]>
Details:
Tickets: