Skip to content
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

[ONNX] Added initial support of DequantizeLinear-21 #26915

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

gkrivor
Copy link
Contributor

@gkrivor gkrivor commented Oct 4, 2024

Details:

  • Added initial support of operation DequantizeLinear-21 from default opset

Tickets:

  • 152784

@gkrivor gkrivor requested a review from a team as a code owner October 4, 2024 09:57
@github-actions github-actions bot added category: build OpenVINO cmake script / infra category: ONNX FE OpenVINO ONNX FrontEnd labels Oct 4, 2024
@gkrivor gkrivor force-pushed the onnx_qdq21 branch 2 times, most recently from 95d7a72 to 05f49a2 Compare October 7, 2024 10:46
src_x.get_shape()[0] % block_size == 0,
"DequantizeLinear doesn't support case when first dimension of X cannot be divided by block_size");

const auto& x = src_x.get_element_type() == scale_type ? src_x : std::make_shared<v1::ConvertLike>(src_x, scale);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please simplify? head breaking expression:)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, in a separate PR, CI is finally green

FRONT_END_GENERAL_CHECK(scale_shape.rank().is_static(), "Rank of the input data tensor has to be known (static).");
FRONT_END_GENERAL_CHECK(scale_shape.rank().get_length() == 2,
"DequantizeLinear cannot operate with more than 2D scales");
FRONT_END_GENERAL_CHECK(src_x.get_partial_shape().is_static(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really important limitation that can be often not met. We can think of how to support it via decomposition one more time, or request new op in the opset.

@gkrivor gkrivor added this pull request to the merge queue Oct 16, 2024
Merged via the queue into openvinotoolkit:master with commit 80d6fdf Oct 16, 2024
160 checks passed
@gkrivor gkrivor deleted the onnx_qdq21 branch October 16, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra category: ONNX FE OpenVINO ONNX FrontEnd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants