Skip to content

Commit b232d06

Browse files
committed
mypy
1 parent 6b9dcf7 commit b232d06

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

onnx_diagnostic/ci_models/export_phi4_mm.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ def local_body_fn(
579579
),
580580
[1],
581581
)
582+
torch._check(isinstance(merged_img_set_tensor, torch.Tensor))
582583
merged_img_set_tensor = merged_img_set_tensor.squeeze(0)
583584

584585
# merged_img_set_tensor = torch.cat(img_set_tensor, dim=1).squeeze(0)
@@ -807,15 +808,16 @@ def main(
807808
)
808809
torch_dtype = get_torch_dtype_from_command_line_args(dtype)
809810

810-
with torch_export_patches(
811-
patch_torch=False,
812-
patch_sympy=False,
813-
patch_transformers=True,
814-
verbose=1,
815-
stop_if_static=2,
816-
profile=(f"{basename}.profile.html" if profile_exporter else None),
817-
custom_patches=get_patches_transformers(),
818-
):
811+
# with torch_export_patches(
812+
# patch_torch=False,
813+
# patch_sympy=False,
814+
# patch_transformers=True,
815+
# verbose=1,
816+
# stop_if_static=2,
817+
## profile=(f"{basename}.profile.html" if profile_exporter else None),
818+
# custom_patches=get_patches_transformers(),
819+
# ):
820+
if 1:
819821
if pretrained:
820822
print("-- pretrained model")
821823
config = AutoConfig.from_pretrained(

0 commit comments

Comments
 (0)