Skip to content

Commit a51448e

Browse files
authored
update urls (#206)
* update urls * doc * fix
1 parent 519fa95 commit a51448e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

_doc/conf.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def linkcode_resolve(domain, info):
105105
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
106106
"sklearn": ("https://scikit-learn.org/stable/", None),
107107
"skl2onnx": ("https://onnx.ai/sklearn-onnx/", None),
108-
"torch": ("https://pytorch.org/docs/main/", None),
108+
"torch": ("https://docs.pytorch.org/docs/stable/", None),
109109
# Not a sphinx documentation
110110
# "transformers": ("https://huggingface.co/docs/transformers/index", None),
111111
}
@@ -208,7 +208,7 @@ def linkcode_resolve(domain, info):
208208
epkg_dictionary = {
209209
"aten functions": "https://pytorch.org/cppdocs/api/namespace_at.html#functions",
210210
"azure pipeline": "https://azure.microsoft.com/en-us/products/devops/pipelines",
211-
"Custom Backends": "https://pytorch.org/docs/stable/torch.compiler_custom_backends.html",
211+
"Custom Backends": "https://docs.pytorch.org/docs/stable/torch.compiler_custom_backends.html",
212212
"diffusers": "https://github.com/huggingface/diffusers",
213213
"DOT": "https://graphviz.org/doc/info/lang.html",
214214
"executorch": "https://pytorch.org/executorch/stable/intro-overview.html",
@@ -218,8 +218,8 @@ def linkcode_resolve(domain, info):
218218
"experimental-experiment": "https://sdpython.github.io/doc/experimental-experiment/dev/",
219219
"JIT": "https://en.wikipedia.org/wiki/Just-in-time_compilation",
220220
"FunctionProto": "https://onnx.ai/onnx/api/classes.html#functionproto",
221-
"graph break": "https://pytorch.org/docs/stable/torch.compiler_faq.html#graph-breaks",
222-
"GraphModule": "https://pytorch.org/docs/stable/fx.html#torch.fx.GraphModule",
221+
"graph break": "https://docs.pytorch.org/docs/stable/torch.compiler_faq.html#graph-breaks",
222+
"GraphModule": "https://docs.pytorch.org/docs/stable/fx.html#torch.fx.GraphModule",
223223
"HuggingFace": "https://huggingface.co/docs/hub/en/index",
224224
"huggingface_hub": "https://github.com/huggingface/huggingface_hub",
225225
"Linux": "https://www.linux.org/",
@@ -232,7 +232,7 @@ def linkcode_resolve(domain, info):
232232
"onnx.helper": "https://onnx.ai/onnx/api/helper.html",
233233
"ONNX": "https://onnx.ai/",
234234
"ONNX Operators": "https://onnx.ai/onnx/operators/",
235-
"onnxrt backend": "https://pytorch.org/docs/stable/onnx_dynamo_onnxruntime_backend.html",
235+
"onnxrt backend": "https://docs.pytorch.org/docs/stable/onnx_dynamo_onnxruntime_backend.html",
236236
"onnxruntime": "https://onnxruntime.ai/",
237237
"onnxruntime-training": "https://onnxruntime.ai/docs/get-started/training-on-device.html",
238238
"onnxruntime kernels": "https://onnxruntime.ai/docs/reference/operators/OperatorKernels.html",
@@ -257,12 +257,12 @@ def linkcode_resolve(domain, info):
257257
"Supported Operators and Data Types": "https://github.com/microsoft/onnxruntime/blob/main/docs/OperatorKernels.md",
258258
"sympy": "https://www.sympy.org/en/index.html",
259259
"timm": "https://github.com/huggingface/pytorch-image-models",
260-
"torch": "https://pytorch.org/docs/stable/torch.html",
260+
"torch": "https://docs.pytorch.org/docs/stable/torch.html",
261261
"torchbench": "https://github.com/pytorch/benchmark",
262262
"torch.compile": "https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html",
263-
"torch.compiler": "https://pytorch.org/docs/stable/torch.compiler.html",
264-
"torch.export.export": "https://pytorch.org/docs/stable/export.html#torch.export.export",
265-
"torch.onnx": "https://pytorch.org/docs/stable/onnx.html",
263+
"torch.compiler": "https://docs.pytorch.org/docs/stable/torch.compiler.html",
264+
"torch.export.export": "https://docs.pytorch.org/docs/stable/export.html#torch.export.export",
265+
"torch.onnx": "https://docs.pytorch.org/docs/stable/onnx.html",
266266
"transformers": "https://huggingface.co/docs/transformers/en/index",
267267
"vocos": "https://github.com/gemelo-ai/vocos",
268268
"Windows": "https://www.microsoft.com/windows",

_doc/examples/plot_export_tiny_llm_patched.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
to non-tensor type <class 'transformers.cache_utils.DynamicCache'>
3030
at `inputs['past_key_values']` (expected None)
3131
For more information about this error,
32-
see: https://pytorch.org/docs/main/generated/exportdb/index.html#dynamic-shapes-validation
32+
see: https://docs.pytorch.org/docs/stable/generated/exportdb/index.html#dynamic-shapes-validation
3333
3434
With ``transformers==4.50``, it shows the following:
3535

0 commit comments

Comments
 (0)