-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update Paddle API for ovc tools #23250
base: master
Are you sure you want to change the base?
Update Paddle API for ovc tools #23250
Conversation
if isinstance(model, paddle.hapi.model.Model) or isinstance(model, | ||
paddle.fluid.dygraph.layers.Layer) or isinstance( | ||
model, paddle.fluid.executor.Executor): | ||
if paddle_model_check_instance(model, "paddle.hapi.model.Model") or paddle_model_check_instance(model, "paddle.nn.layer.layers.Layer") or paddle_model_check_instance(model, "paddle.fluid.dygraph.layers.Layer") or paddle_model_check_instance(model, "paddle.base.Executor") or paddle_model_check_instance(model, "paddle.fluid.executor.Executor"): |
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.
Can we make a list of class names ["paddle.hapi.model.Model", ...] and iterate over them?
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.
It's done.
This PR will be closed in a week because of 2 weeks of no activity. |
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.
Changes look good to me. Please add tests openvino\tests\layer_tests\ovc_python_api_tests\test_paddle.py to test new model classes.
7faf800
to
e5e3ba7
Compare
40e259e
to
41a490f
Compare
41a490f
to
f1cc8c0
Compare
f215d4f
to
358b1bc
Compare
358b1bc
to
0df82ac
Compare
Co-authored-by: Anastasiia Pnevskaia <[email protected]>
Co-authored-by: Anastasiia Pnevskaia <[email protected]>
0df82ac
to
251f671
Compare
Details:
Tickets: