-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Extend Python API with a new model.reshape()
overload
#18347
Comments
Do we need any placeholder if I want to change only specific shapes? |
I guess in that case the user should use dict overload, where a specific input can be reshaped. Either that or we do the placeholder you suggested, but I think that whatever the placeholder would be, it wouldn't be clear. We can't do |
hey @p-wysocki @ilya-lavrenov I want to work on this can you please assign it to me |
thanks a lot for assigning me , i will surely come up with doubts or updates if any |
@dev-seek Thanks for taking a look, we're here to answer any questions. :) |
As for placeholder values, there is a problem with adding them. What should be a concept instead of integers? Enums like I think that placeholder values are not in the scope of this task and @p-wysocki solution with dict is suitable for now (e.x. In general case user could perform something like |
hey @p-wysocki @jiwaszki Just to clearify can i build the whole on Debian as here -> https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_linux.md its written for Ubuntu can i do the same for Debian as Ubuntu is based on Debian |
Hi @dev-seek, as far as I know this instruction works for Debian. If you encounter any issues please let us know. |
hey is the issue resolve I want to contribute . I am new to open-source contribution |
Hey @Jay-sanjay i am already contributing to it |
I'm returning the task to being open due to current assignee's inactivity. |
Sry @p-wysocki i am not inactive in middle i am suffering from a bad health issue related to heart... |
i really want this to be done if u can, please reassign it to me @p-wysocki |
Sure, get well soon. :) |
Thanks a lot @p-wysocki |
I'm returning the task to being open due to current assignee's inactivity. |
Hey @p-wysocki doesn't this already solve this issue? |
@slyalin could you please take a look? IIRC this feature was at your request, do you think there's a benefit on expanding our API to also accepting lists, when we have an overload which @siddhant-0707 linked? |
@p-wysocki, the mentioned by @siddhant-0707 method accepts So we still don't have a method that just accepts the list of shapes. In the example from the description, instead of The real problem is how to align a newly proposed |
want to make sure I understand this, basically to resolve this issue, go into model.cpp and add a new |
Hi @p-wysocki, could you transfer assignment of this issue, thank you! |
you got it! |
Hello @mcshawn10, is there anything we can help you with? Do you have any questions? |
@p-wysocki hi it's been a slow start, no questions yet, thank you! |
Just yesterday our CONTRIBUTING.md has been updated with a technical guide - I highly recommend checking it out. :) |
.take |
Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue. |
@daksh-code @p-wysocki removing my assignment since I have been working on other things and some else wants it, have fun! |
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
Hello @daksh-code, do you need any help? I am happy to announce that we have created a channel dedicated to Good First Issues support on our Intel DevHub Discord server! Join it to receive support, engage in discussions, ask questions and talk to OpenVINO developers. |
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
PR #22171 |
Hi @akuporos , Sure I can work on this. Can you please assign this to me? |
Hi, It seems clear from the description that input is list of shapes, but want to confirm it again. It's list of shapes right? not list of lists? |
Hi @akuporos , Have added a PR for this issue. |
Context
Currently there are multiple ways to reshape model inputs in Python API. They are defined as bindings to C++ code.
A new way to reshape has been suggested - implicit input reshaping with a list of input shapes. An example of new, desired overload/Python API function:
model
has three inputs: A, B and Cmodel
is being reshaped with a list of shapes:model.reshape([[2,2], [1, 3, 224, 244], [10]])
A.shape = [2, 2]
B.shape = [1, 3, 244, 244]
C.shape = [10]
Python API model binding needs to be extended with a new overload which will add this functionality.
What needs to be done?
model.reshape
inmodel
C++ bindingstest_model.py
Resources
Contact points
@p-wysocki
@jiwaszki
@akuporos
Don't hesitate to reach out, we're here to help!
Ticket: 110444
The text was updated successfully, but these errors were encountered: