Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxinwei committed Dec 10, 2024
1 parent 164fd2f commit ceb9c09
Show file tree
Hide file tree
Showing 153 changed files with 1,833 additions and 761 deletions.
412 changes: 376 additions & 36 deletions doc/datasets/cv/DIV2K.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions doc/ecosystem/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[ecosystem](https://pytorch.org/ecosystem/) 中,PyTorch 社区有很多优质开源项目,可以帮助你更好地利用 PyTorch 进行深度学习。

```{toctree}
tutorials/index
ExecuTorch/index
torchao/index
ultralytics/index
Expand Down
18 changes: 18 additions & 0 deletions doc/ecosystem/tutorials/TorchScript/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# TorchScript

参考:[jit](https://pytorch.org/docs/stable/jit.html)

TorchScript 是一种从 PyTorch 代码创建可序列化和可优化模型的方法。任何 TorchScript 程序都可以从 Python 进程中保存,并在没有 Python 依赖的进程中加载。

可以逐步将模型从纯 Python 程序过渡到可以独立于 Python 运行的 TorchScript 程序,例如在独立的 C++ 程序中运行。这使得可以在 PyTorch 中使用熟悉的 Python 工具训练模型,然后通过 TorchScript 将模型导出到生产环境中,因为在这些环境中,Python 程序可能由于性能和多线程的原因而处于不利地位。

对于 TorchScript 的温和介绍,请参阅 [TorchScript 简介教程](intro)

对于将 PyTorch 模型转换为 TorchScript 并在 C++ 中运行的端到端示例,请参阅 [在 C++ 中加载 PyTorch 模型教程](https://pytorch.org/tutorials/advanced/cpp_export.html)

```{toctree}
:hidden:
intro
jit
```
Loading

0 comments on commit ceb9c09

Please sign in to comment.