Skip to content

Commit c5202f0

Browse files
fix
1 parent bceb371 commit c5202f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

optimum/intel/openvino/modeling_visual_language.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,8 @@ def preprocess_inputs(
10231023

10241024
if (
10251025
getattr(processor, "patch_size", None) is None
1026-
and hasattr(config, "vision_config")
1027-
and hasattr(config.vision_config, "patch_size")
1026+
and getattr(config, "vision_config", None) is not None
1027+
and getattr(config.vision_config, "patch_size", None) is not None
10281028
):
10291029
processor.patch_size = config.vision_config.patch_size
10301030

0 commit comments

Comments
 (0)