{"id":13435377,"url":"https://github.com/xitu/tensorflow-docs","last_synced_at":"2025-05-15T00:07:50.135Z","repository":{"id":50280109,"uuid":"124370024","full_name":"xitu/tensorflow-docs","owner":"xitu","description":"TensorFlow 最新官方文档中文版","archived":false,"fork":false,"pushed_at":"2019-04-17T08:38:29.000Z","size":4785,"stargazers_count":3807,"open_issues_count":2,"forks_count":470,"subscribers_count":178,"default_branch":"zh-hans","last_synced_at":"2025-04-13T20:41:18.361Z","etag":null,"topics":["documentation","machine-learning","tensorflow"],"latest_commit_sha":null,"homepage":"https://tensorflow.juejin.im","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xitu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-08T09:39:54.000Z","updated_at":"2025-04-06T02:35:48.000Z","dependencies_parsed_at":"2022-09-24T10:20:52.073Z","dependency_job_id":null,"html_url":"https://github.com/xitu/tensorflow-docs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xitu%2Ftensorflow-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xitu%2Ftensorflow-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xitu%2Ftensorflow-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xitu%2Ftensorflow-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xitu","download_url":"https://codeload.github.com/xitu/tensorflow-docs/tar.gz/refs/heads/zh-hans","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249197,"owners_count":22039029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["documentation","machine-learning","tensorflow"],"created_at":"2024-07-31T03:00:35.243Z","updated_at":"2025-05-15T00:07:45.128Z","avatar_url":"https://github.com/xitu.png","language":"Jupyter Notebook","funding_links":[],"categories":["1 Predict","Jupyter Notebook"],"sub_categories":["Machine Learning Related Documention"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://www.tensorflow.org/images/tf_logo_transp.png\"\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n\u003e [TensorFlow Docs](https://github.com/xitu/tensorflow-docs) 是由[掘金翻译计划](https://github.com/xitu/gold-miner)实时维护的 TensorFlow 官方文档中文版，维护者为全球各大公司开发人员和各著名高校研究者及学生。欢迎大家加入维护团队，欢迎提 Issue 和 PR，参与之前请阅读[文档维护说明](https://github.com/xitu/tensorflow-docs/wiki#%E6%96%87%E6%A1%A3%E7%BB%B4%E6%8A%A4%E8%A7%84%E8%8C%83)。\n\u003e\n\u003e - 阅读文档请到 👉 https://tensorflow.juejin.im\n\u003e - 推荐学习顺序等更多内容详见：[TensorFlow Docs WIKI](https://github.com/xitu/tensorflow-docs/wiki)\n\u003e - 相关术语表：[TensorFlow 术语表](https://github.com/xitu/tensorflow-docs/wiki/TensorFlow-%E6%9C%AF%E8%AF%AD%E8%A1%A8)，[人工智能术语表](https://github.com/xitu/tensorflow-docs/wiki#%E6%9C%AF%E8%AF%AD%E8%A1%A8)\n\u003e - 掘金翻译计划欢迎大家的加入，详见 👉 [加入我们](https://github.com/xitu/gold-miner)\n\n---\n\n| **`Documentation`** |\n|-----------------|\n| [![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://www.tensorflow.org/api_docs/) |\n\n**TensorFlow** 是一个使用数据流图进行数值计算开源软件库。图的节点表示数学运算，节点之间的边表示流动的多维数据数组（张量）。这种灵活的架构使你能在无需重写代码的情况下，将计算在桌面端、服务端或移动端部署到一个或多个 CPU 和 GPU 中。TensorFlow 还包含 [TensorBoard](https://www.tensorflow.org/guide/summaries_and_tensorboard)，它是一个数据可视化工具包。\n\nTensorFlow 最初由 Google 机器智能研究机构内的 Google Brain 团队的研究人员和工程师开发，用于进行机器学习和深度神经网络研究。此系统一般足以适用于各种其他领域。\n\nTensorFlow 提供了稳定的 Python API 和 C 语言 API，以及没有向后兼容性保证的如 C++、Go、Java、JavaScript 和 Swift 等 API。\n\n你可以通过订阅 [announce@tensorflow.org](https://groups.google.com/a/tensorflow.org/forum/#!forum/announce) 来及时获得 TensorFlow 最新的公告及更新等信息。\n\n## 安装\n\n**在 [安装 TensorFlow](https://www.tensorflow.org/install) 页面中查看关于稳定二进制版的安装或从源码安装的安装步骤。**\n\n喜欢挑战的人也可以尝试我们的开发版：\n\n**开发版 pip 包**\n* 我们非常高兴发布 TensorFlow 的开发版，现在 pypi 提供开发版的 pip 包 [tf-nightly](https://pypi.python.org/pypi/tf-nightly) 和\n  [tf-nightly-gpu](https://pypi.python.org/pypi/tf-nightly-gpu) 项目。在干净的环境中简单运行 `pip install tf-nightly` 或 `pip install tf-nightly-gpu` 即可安装 TensorFlow 开发版。 我们为 Linux、Mac 和 Windows 提供  CPU 和 GPU 支持。\n\n#### 开启你的第一个 TensorFlow 程序\n\n```shell\n$ python\n```\n```python\n\u003e\u003e\u003e import tensorflow as tf\n\u003e\u003e\u003e tf.enable_eager_execution()\n\u003e\u003e\u003e tf.add(1, 2)\n3\n\u003e\u003e\u003e hello = tf.constant('Hello, TensorFlow!')\n\u003e\u003e\u003e hello.numpy()\n'Hello, TensorFlow!'\n```\n\n在 [tensorflow.org 的教程页面](https://www.tensorflow.org/tutorials/)中了解更多有关如何在 TensorFlow 中执行特定任务的示例吧。\n\n## 贡献指南\n\n**如果你想参与贡献 TensorFlow，请先查看我们的 [贡献指南](CONTRIBUTING.md)。此项目遵循 TensorFlow\n[项目规范](CODE_OF_CONDUCT.md)。我们期望你能遵循此规范。**\n\n**我们还使用 [GitHub issues](https://github.com/tensorflow/tensorflow/issues) 来跟进 requests 和 bugs。对于一般性问题和讨论请查看 \n[TensorFlow 讨论](https://groups.google.com/a/tensorflow.org/forum/#!forum/discuss)，或直接在 [Stack Overflow](https://stackoverflow.com/questions/tagged/tensorflow) 提问。**\n\nTensorFlow 项目致力于遵守开源软件开发中普遍接受的最佳实践：\n\n[![CII 最佳实践](https://bestpractices.coreinfrastructure.org/projects/1486/badge)](https://bestpractices.coreinfrastructure.org/projects/1486)\n\n## 持续构建状态\n\n### 官方构建\n\n| Build Type      | Status | Artifacts |\n| ---             | ---    | ---       |\n| **Linux CPU**   | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/ubuntu-cc.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/ubuntu-cc.html) | [pypi](https://pypi.org/project/tf-nightly/) |\n| **Linux GPU**   | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/ubuntu-gpu-py3.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/ubuntu-gpu-py3.html) | [pypi](https://pypi.org/project/tf-nightly-gpu/) |\n| **Linux XLA**   | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/ubuntu-xla.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/ubuntu-xla.html) | TBA |\n| **MacOS**       | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/macos-py2-cc.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/macos-py2-cc.html) | [pypi](https://pypi.org/project/tf-nightly/) |\n| **Windows CPU** | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/windows-cpu.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/windows-cpu.html) | [pypi](https://pypi.org/project/tf-nightly/) |\n| **Windows GPU** | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/windows-gpu.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/windows-gpu.html) | [pypi](https://pypi.org/project/tf-nightly-gpu/) |\n| **Android**     | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/android.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/android.html) | [![Download](https://api.bintray.com/packages/google/tensorflow/tensorflow/images/download.svg)](https://bintray.com/google/tensorflow/tensorflow/_latestVersion) |\n| **Raspberry Pi 0 and 1** | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi01-py2.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi01-py2.html) [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi01-py3.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi01-py3.html) | [Py2](https://storage.googleapis.com/tensorflow-nightly/tensorflow-1.10.0-cp27-none-linux_armv6l.whl) [Py3](https://storage.googleapis.com/tensorflow-nightly/tensorflow-1.10.0-cp34-none-linux_armv6l.whl) |\n| **Raspberry Pi 2 and 3** | [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi23-py2.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi23-py2.html) [![Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi23-py3.svg)](https://storage.googleapis.com/tensorflow-kokoro-build-badges/rpi23-py3.html) | [Py2](https://storage.googleapis.com/tensorflow-nightly/tensorflow-1.10.0-cp27-none-linux_armv7l.whl) [Py3](https://storage.googleapis.com/tensorflow-nightly/tensorflow-1.10.0-cp34-none-linux_armv7l.whl) |\n\n### 社区支持下的构建\n\n| Build Type      | Status | Artifacts |\n| ---             | ---    | ---       |\n| **IBM s390x**       | [![Build Status](http://ibmz-ci.osuosl.org/job/TensorFlow_IBMZ_CI/badge/icon)](http://ibmz-ci.osuosl.org/job/TensorFlow_IBMZ_CI/) | TBA |\n| **IBM ppc64le CPU** | [![Build Status](http://powerci.osuosl.org/job/TensorFlow_Ubuntu_16.04_CPU/badge/icon)](http://powerci.osuosl.org/job/TensorFlow_Ubuntu_16.04_CPU/) | TBA |\n| **IBM ppc64le GPU** | [![Build Status](http://powerci.osuosl.org/job/TensorFlow_Ubuntu_16.04_PPC64LE_GPU/badge/icon)](http://powerci.osuosl.org/job/TensorFlow_Ubuntu_16.04_PPC64LE_GPU/) | TBA |\n| **Linux CPU with Intel® MKL-DNN** Nightly | [![Build Status](https://tensorflow-ci.intel.com/job/tensorflow-mkl-linux-cpu/badge/icon)](https://tensorflow-ci.intel.com/job/tensorflow-mkl-linux-cpu/) | [Nightly](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-whl-nightly/) |\n| **Linux CPU with Intel® MKL-DNN** Python 2.7\u003cbr\u003e **Linux CPU with Intel® MKL-DNN** Python 3.5\u003cbr\u003e  **Linux CPU with Intel® MKL-DNN** Python 3.6 | [![Build Status](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-release-whl/badge/icon)](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-release-whl/lastStableBuild)|[1.10.0 py2.7](https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.10.0-cp27-cp27mu-linux_x86_64.whl)\u003cbr\u003e[1.10.0 py3.5](https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl)\u003cbr\u003e[1.10.0 py3.6](https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.10.0-cp36-cp36m-linux_x86_64.whl) |\n\n## 更多信息\n\n* [TensorFlow 网站](https://www.tensorflow.org)\n* [TensorFlow 教程](https://www.tensorflow.org/tutorials/)\n* [TensorFlow 模型](https://github.com/tensorflow/models)\n* [TensorFlow Twitter](https://twitter.com/tensorflow)\n* [TensorFlow Blog](https://medium.com/tensorflow)\n* [TensorFlow Course at Stanford](https://web.stanford.edu/class/cs20si)\n* [TensorFlow Roadmap](https://www.tensorflow.org/community/roadmap)\n* [TensorFlow White Papers](https://www.tensorflow.org/about/bib)\n* [TensorFlow YouTube Channel](https://www.youtube.com/channel/UC0rqucBdTuFTjJiefW5t-IQ)\n\n你可以在 [tensorflow.org 社区页](https://www.tensorflow.org/community) 了解更多关于参与 TensorFlow 社区的方法。\n\n## 文档管理团队\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n| [\u003cimg src=\"https://avatars0.githubusercontent.com/u/26959437?s=460\u0026v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003eLeviDing\u003c/sub\u003e](https://github.com/leviding)\u003cbr /\u003e[👀](#review-leviding \"Reviewed Pull Requests\") [🌍](#translation-leviding \"Translation\") [📋](#eventOrganizing-leviding \"Event Organizing\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/4813445?s=460\u0026v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003epkuwwt\u003c/sub\u003e](https://github.com/pkuwwt)\u003cbr /\u003e[👀](#review-pkuwwt \"Reviewed Pull Requests\") [🌍](#translation-pkuwwt \"Translation\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/6165782?s=460\u0026v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003eJohn Jiang\u003c/sub\u003e](https://github.com/JohnJiangLA)\u003cbr /\u003e[👀](#review-JohnJiangLA \"Reviewed Pull Requests\") [🌍](#translation-JohnJiangLA \"Translation\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/5164225?s=460\u0026v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003elsvih\u003c/sub\u003e](https://github.com/lsvih)\u003cbr /\u003e[👀](#review-lsvih \"Reviewed Pull Requests\") [🌍](#translation-lsvih \"Translation\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/9419075?s=460\u0026v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003efoxxnuaa\u003c/sub\u003e](https://github.com/foxxnuaa)\u003cbr /\u003e[👀](#review-foxxnuaa \"Reviewed Pull Requests\") [🌍](#translation-foxxnuaa \"Translation\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/5498964?s=460\u0026v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003echangkun\u003c/sub\u003e](https://github.com/changkun)\u003cbr /\u003e[👀](#review-changkun \"Reviewed Pull Requests\") [🌍](#translation-changkun \"Translation\") |\n|:-:|:-:|:-:|:-:|:-:|:-:|\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## Co-Translators\n\n[所有译者详细信息](https://github.com/xitu/tensorflow-docs/graphs/contributors)\n\n## 文档维护支持\n\n[\u003cimg src=\"https://user-images.githubusercontent.com/26959437/37653530-37bd3cde-2c7a-11e8-98d0-749a59194c22.png\" width=\"200px;\"/\u003e](https://juejin.im)\n\n\u003c!--\n\n\u003ca href=\"https://coding.net/?utm_source=javascript-tutorial-zh\u0026utm_medium=banner\u0026utm_campaign=march2019\" target=\"_blank\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/26959437/56273145-c56aa000-612e-11e9-9137-a1388ef18cf2.png\" width=\"200px;\" target=\"_blank\"/\u003e\u003c/a\u003e\n\n[\u003cimg src=\"https://user-images.githubusercontent.com/26959437/37953025-3fa103ae-31d4-11e8-9e55-136b05d7cb96.jpg\" width=\"200px;\"/\u003e](https://jizhi.im/index)\u003cbr /\u003e了解更多人工智能知识请前往[景略集智](https://jizhi.im/index)，想从零开始学习人工智能请前往[景略集智 AI 课堂](https://h5.youzan.com/v2/showcase/homepage?alias=U5eAeeuRD2)。\n\n每月 27 号为合作周期截止日，七月开始未提供物资。\n\n--\u003e\n\n## 许可\n\n文档正在完善中，未经允许禁止任何形式的转载。\n\n[Apache 许可 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxitu%2Ftensorflow-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxitu%2Ftensorflow-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxitu%2Ftensorflow-docs/lists"}