-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[OV JS] Expose Model.reshape #30785
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
base: master
Are you sure you want to change the base?
[OV JS] Expose Model.reshape #30785
Conversation
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
@@ -62,3 +62,7 @@ Napi::Value PartialShapeWrap::to_string(const Napi::CallbackInfo& info) { | |||
Napi::Value PartialShapeWrap::get_dimensions(const Napi::CallbackInfo& info) { | |||
return cpp_to_js<ov::PartialShape, Napi::Array>(info, _partial_shape); | |||
} | |||
|
|||
ov::PartialShape PartialShapeWrap::get_value() const { |
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.
Is it required to re turn it by value or can be reference?
|
||
std::map<ov::Output<ov::Node>, ov::PartialShape> ModelWrap::get_new_shapes(const Napi::Env& env, | ||
const Napi::Value& value) { | ||
std::map<ov::Output<ov::Node>, ov::PartialShape> new_shapes; |
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.
std::map<ov::Output<ov::Node>, ov::PartialShape> new_shapes; | |
std::unordered_map<ov::Output<ov::Node>, ov::PartialShape> new_shapes; |
Can be used instead?
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 don't think so, ov::Output<ov::Node>
doesn't have a hash, so it cannot be a key
Details:
Model.reshape
methodjs/node/include/helper.hpp
and type validation helpers tojs/node/include/type_validation.hpp
Tickets: