OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU]fix error handler (#33810)
Ethan Yang57731f4e8ac7
diff --git a/src/plugins/intel_gpu/src/graph/error_handler.cpp b/src/plugins/intel_gpu/src/graph/error_handler.cppindex 3f53f28c526..505a359b256 100644--- a/src/plugins/intel_gpu/src/graph/error_handler.cpp+++ b/src/plugins/intel_gpu/src/graph/error_handler.cpp@@ -169,16 +169,16 @@ void error_on_tensor_dims_not_dividable_by_other_tensor_dims(const std::string&const tensor& tens_to_compre,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) {errors.push_back("Batch");}- if (tens.feature[0] % tens_to_compre.feature[0] != 0) {+ if (tens_to_compre.feature[0] != 0 && tens.feature[0] % tens_to_compre.feature[0] != 0) {errors.push_back("Feature");}- if (tens.spatial[0] % tens_to_compre.spatial[0] != 0) {+ if (tens_to_compre.spatial[0] != 0 && tens.spatial[0] % tens_to_compre.spatial[0] != 0) {errors.push_back("Spatial x");}- if (tens.spatial[1] % tens_to_compre.spatial[1] != 0) {+ if (tens_to_compre.spatial[1] != 0 && tens.spatial[1] % tens_to_compre.spatial[1] != 0) {errors.push_back("Spatial y");}