Skip to content

[GPU]fix error handler#33810

Open
openvino-dev-samples wants to merge 1 commit intoopenvinotoolkit:masterfrom
openvino-dev-samples:fix_error_handler
Open

[GPU]fix error handler#33810
openvino-dev-samples wants to merge 1 commit intoopenvinotoolkit:masterfrom
openvino-dev-samples:fix_error_handler

Conversation

@openvino-dev-samples
Copy link
Contributor

Add checker for tens_to_compre.batch[0] != 0

@openvino-dev-samples openvino-dev-samples requested review from a team as code owners January 26, 2026 04:09
@github-actions github-actions bot added the category: GPU OpenVINO GPU plugin label Jan 26, 2026
const std::string& additional_message) {
std::vector<std::string> errors;
if (tens.batch[0] % tens_to_compre.batch[0] != 0) {
if (tens_to_compre.batch[0] != 0 && tens.batch[0] % tens_to_compre.batch[0] != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe also add division by zero as an additional error?

Suggested change
if (tens_to_compre.batch[0] != 0 && tens.batch[0] % tens_to_compre.batch[0] != 0) {
if (tens_to_compre.batch[0] == 0 || tens.batch[0] % tens_to_compre.batch[0] != 0) {

The same applies to other conditions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my case, the tens.batch[0] is 0 as well

Copy link
Collaborator

@rkazants rkazants left a comment

Choose a reason for hiding this comment

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

can you please implement tests to cover these cases?

@rkazants rkazants added the pr: needs tests PR needs tests updating label Jan 27, 2026
@openvino-dev-samples
Copy link
Contributor Author

can you please implement tests to cover these cases?

Hi this PR is only for safety check before % calculation, so why does it need a test case ? I think there is no impact on other codes.

@p-durandin
Copy link
Contributor

build_jenkins

@p-durandin p-durandin added this to the 2026.1 milestone Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: GPU OpenVINO GPU plugin pr: needs tests PR needs tests updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants