https://github.com/xinetzone/torch-book
Torch 手册
https://github.com/xinetzone/torch-book
torch-book
Last synced: about 1 year ago
JSON representation
Torch 手册
- Host: GitHub
- URL: https://github.com/xinetzone/torch-book
- Owner: xinetzone
- License: apache-2.0
- Created: 2022-10-09T00:57:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T02:42:05.000Z (about 2 years ago)
- Last Synced: 2024-04-24T10:47:53.609Z (about 2 years ago)
- Topics: torch-book
- Language: Jupyter Notebook
- Homepage: https://xinetzone.github.io/torch-book/
- Size: 28.6 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Torch 世界
[![PyPI][pypi-badge]][pypi-link]
[![GitHub issues][issue-badge]][issue-link]
[![GitHub forks][fork-badge]][fork-link]
[![GitHub stars][star-badge]][star-link]
[![GitHub license][license-badge]][license-link]
[![contributors][contributor-badge]][contributor-link]
[![watcher][watcher-badge]][watcher-link]
[![Binder][binder-badge]][binder-link]
[![Downloads][download-badge]][download-link]
[![Documentation Status][status-badge]][status-link]
[![PyPI - Downloads][install-badge]][install-link]

[](https://pepy.tech/project/torch-book)
[![Upload Python Package][upload-python-package-badge]][upload-python-package-link]
借助 PyTorch 探索有趣之事。
[upload-python-package-badge]: https://github.com/xinetzone/torch-book/actions/workflows/python-publish.yml/badge.svg
[upload-python-package-link]: https://github.com/xinetzone/torch-book/actions/workflows/python-publish.yml
[pypi-badge]: https://img.shields.io/pypi/v/torch-book.svg
[pypi-link]: https://pypi.org/project/torch-book/
[issue-badge]: https://img.shields.io/github/issues/xinetzone/torch-book
[issue-link]: https://github.com/xinetzone/torch-book/issues
[fork-badge]: https://img.shields.io/github/forks/xinetzone/torch-book
[fork-link]: https://github.com/xinetzone/torch-book/network
[star-badge]: https://img.shields.io/github/stars/xinetzone/torch-book
[star-link]: https://github.com/xinetzone/torch-book/stargazers
[license-badge]: https://img.shields.io/github/license/xinetzone/torch-book
[license-link]: https://github.com/xinetzone/torch-book/LICENSE
[contributor-badge]: https://img.shields.io/github/contributors/xinetzone/torch-book
[contributor-link]: https://github.com/xinetzone/torch-book/contributors
[watcher-badge]: https://img.shields.io/github/watchers/xinetzone/torch-book
[watcher-link]: https://github.com/xinetzone/torch-book/watchers
[binder-badge]: https://mybinder.org/badge_logo.svg
[binder-link]: https://mybinder.org/v2/gh/xinetzone/torch-book/main
[install-badge]: https://img.shields.io/pypi/dw/torch-book?label=pypi%20installs
[install-link]: https://pypistats.org/packages/torch-book
[status-badge]: https://readthedocs.org/projects/torch-book/badge/?version=latest
[status-link]: https://torch-book.readthedocs.io/zh-cn/latest/?badge=latest
[download-badge]: https://pepy.tech/badge/torch-book
[download-link]: https://pepy.tech/project/torch-book
[rtd-badge]: https://readthedocs.org/projects/torch-book/badge/?version=latest
[rtd-link]: https://torch-book.readthedocs.io/zh-cn/latest/?badge=latest
## 支持 PyPI
需要安装 `torch-book` 包:
```shell
pip install torch-book
```
## 开发指南
推荐[使用 `anaconda3` 配置环境](https://www.zhihu.com/zvideo/1423062760733700096):
```bash
conda create -n ai python=3.12
conda activate ai
pip install -e .[doc,dev]
```
安装 PyTorch GPU 版本(其他版本见 [PyTorch 安装指南](https://pytorch.org/get-started/locally/)):
```bash
conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia
```
## 文档构建
```bash
pip install .[doc]
inv doc.clean
inv doc
```