Skip to content

Commit 371b55d

Browse files
committed
patch
1 parent 905cd25 commit 371b55d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

onnx_diagnostic/torch_export_patches/onnx_export_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_patches(mod, verbose: int = 0) -> Tuple[str, List[Any]]:
3232
to_patch.append(v)
3333
else:
3434
# a function
35-
doc = v.__doc__
35+
doc = v.__doc__.lstrip()
3636
if doc.startswith("manual patch"):
3737
continue
3838
reg = re.compile("[[]patch:([a-z_A-Z.]+)[]]")

onnx_diagnostic/torch_export_patches/patches/patch_transformers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ def patched__compute_dynamic_ntk_parameters(
540540
seq_len: Optional[int] = None,
541541
**rope_kwargs,
542542
) -> Tuple["torch.Tensor", float]:
543-
"""manual patch:
543+
"""
544+
manual patch:
544545
``[patch:transformers.modeling_rope_utils._compute_dynamic_ntk_parameters]``
545546
546547
Computes the inverse frequencies with NTK scaling.

0 commit comments

Comments
 (0)