{"id":13487086,"url":"https://github.com/tensorlayer/TensorLayer","last_synced_at":"2025-03-27T21:31:49.674Z","repository":{"id":37285892,"uuid":"60626727","full_name":"tensorlayer/TensorLayer","owner":"tensorlayer","description":"Deep Learning and Reinforcement Learning Library for Scientists and Engineers ","archived":false,"fork":false,"pushed_at":"2023-02-18T07:58:21.000Z","size":104782,"stargazers_count":7344,"open_issues_count":36,"forks_count":1605,"subscribers_count":454,"default_branch":"master","last_synced_at":"2025-03-26T13:11:38.042Z","etag":null,"topics":["a3c","artificial-intelligence","chatbot","deep-learning","dqn","gan","google","imagenet","neural-network","object-detection","python","reinforcement-learning","tensorflow","tensorflow-tutorial","tensorflow-tutorials","tensorlayer"],"latest_commit_sha":null,"homepage":"http://tensorlayerx.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tensorlayer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-06-07T15:55:16.000Z","updated_at":"2025-03-26T06:49:59.000Z","dependencies_parsed_at":"2022-08-08T20:00:52.449Z","dependency_job_id":"ae73c443-0ec6-4f41-bf3d-81000b288c76","html_url":"https://github.com/tensorlayer/TensorLayer","commit_stats":{"total_commits":2924,"total_committers":141,"mean_commits":20.73758865248227,"dds":0.5037619699042408,"last_synced_commit":"0681633252667b317a23b803c11a8a060a44bf31"},"previous_names":["zsdonghao/tensorlayer"],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorlayer%2FTensorLayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorlayer%2FTensorLayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorlayer%2FTensorLayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorlayer%2FTensorLayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tensorlayer","download_url":"https://codeload.github.com/tensorlayer/TensorLayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245927300,"owners_count":20695208,"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":["a3c","artificial-intelligence","chatbot","deep-learning","dqn","gan","google","imagenet","neural-network","object-detection","python","reinforcement-learning","tensorflow","tensorflow-tutorial","tensorflow-tutorials","tensorlayer"],"created_at":"2024-07-31T18:00:55.204Z","updated_at":"2025-03-27T21:31:49.608Z","avatar_url":"https://github.com/tensorlayer.png","language":"Python","readme":"\u003ca href=\"https://tensorlayer.readthedocs.io/\"\u003e\n    \u003cdiv align=\"center\"\u003e\n        \u003cimg src=\"img/tl_transparent_logo.png\" width=\"50%\" height=\"30%\"/\u003e\n    \u003c/div\u003e\n\u003c/a\u003e\n\n\u003c!--- [![PyPI Version](https://badge.fury.io/py/tensorlayer.svg)](https://badge.fury.io/py/tensorlayer) ---\u003e\n\u003c!--- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tensorlayer.svg)) ---\u003e\n\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/tensorlayer/tensorlayer/master.svg)\n[![Supported TF Version](https://img.shields.io/badge/TensorFlow-2.0.0%2B-brightgreen.svg)](https://github.com/tensorflow/tensorflow/releases)\n[![Documentation Status](https://readthedocs.org/projects/tensorlayer/badge/)](https://tensorlayer.readthedocs.io/)\n[![Build Status](https://travis-ci.org/tensorlayer/tensorlayer.svg?branch=master)](https://travis-ci.org/tensorlayer/tensorlayer)\n[![Downloads](http://pepy.tech/badge/tensorlayer)](http://pepy.tech/project/tensorlayer)\n[![Downloads](https://pepy.tech/badge/tensorlayer/week)](https://pepy.tech/project/tensorlayer/week)\n[![Docker Pulls](https://img.shields.io/docker/pulls/tensorlayer/tensorlayer.svg)](https://hub.docker.com/r/tensorlayer/tensorlayer/)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d6b118784e25435498e7310745adb848)](https://www.codacy.com/app/tensorlayer/tensorlayer)\n\n\u003c!---  [![CircleCI](https://circleci.com/gh/tensorlayer/tensorlayer/tree/master.svg?style=svg)](https://circleci.com/gh/tensorlayer/tensorlayer/tree/master) ---\u003e\n\n\u003c!---  [![Documentation Status](https://readthedocs.org/projects/tensorlayercn/badge/)](https://tensorlayercn.readthedocs.io/)\n\u003c!---  [![PyUP Updates](https://pyup.io/repos/github/tensorlayer/tensorlayer/shield.svg)](https://pyup.io/repos/github/tensorlayer/tensorlayer/) ---\u003e\n\n# Please click [TensorLayerX](https://github.com/tensorlayer/tensorlayerx) 🔥🔥🔥\n\n[TensorLayer](https://tensorlayer.readthedocs.io) is a novel TensorFlow-based deep learning and reinforcement learning library designed for researchers and engineers. It provides an extensive collection of customizable neural layers to build advanced AI models quickly, based on this, the community open-sourced mass [tutorials](https://github.com/tensorlayer/tensorlayer/blob/master/examples/reinforcement_learning/README.md) and [applications](https://github.com/tensorlayer). TensorLayer is awarded the 2017 Best Open Source Software by the [ACM Multimedia Society](https://twitter.com/ImperialDSI/status/923928895325442049). \nThis project can also be found at [OpenI](https://git.openi.org.cn/TensorLayer/tensorlayer3.0) and [Gitee](https://gitee.com/organizations/TensorLayer).\n\n# News\n\n- 🔥 [TensorLayerX](https://github.com/tensorlayer/tensorlayerx) is a Unified Deep Learning and Reinforcement Learning Framework for All Hardwares, Backends and OS. The current version supports TensorFlow, Pytorch, MindSpore, PaddlePaddle, OneFlow and Jittor as the backends, allowing users to run the code on different hardware like Nvidia-GPU and Huawei-Ascend.\n- TensorLayer is now in [OpenI](https://git.openi.org.cn/TensorLayer/tensorlayer3.0)\n- Reinforcement Learning Zoo: [Low-level APIs](https://github.com/tensorlayer/tensorlayer/tree/master/examples/reinforcement_learning) for professional usage, [High-level APIs](https://github.com/tensorlayer/RLzoo) for simple usage, and a corresponding [Springer textbook](http://springer.com/gp/book/9789811540943)\n- [Sipeed Maxi-EMC](https://github.com/sipeed/Maix-EMC): Run TensorLayer models on the **low-cost AI chip** (e.g., K210) (Alpha Version)\n\n\u003c!-- 🔥 [NNoM](https://github.com/majianjia/nnom): Run TensorLayer quantized models on the **MCU** (e.g., STM32) (Coming Soon) --\u003e\n\n# Design Features\n\nTensorLayer is a new deep learning library designed with simplicity, flexibility and high-performance in mind.\n\n- ***Simplicity*** : TensorLayer has a high-level layer/model abstraction which is effortless to learn. You can learn how deep learning can benefit your AI tasks in minutes through the massive [examples](https://github.com/tensorlayer/awesome-tensorlayer).\n- ***Flexibility*** : TensorLayer APIs are transparent and flexible, inspired by the emerging PyTorch library. Compared to the Keras abstraction, TensorLayer makes it much easier to build and train complex AI models.\n- ***Zero-cost Abstraction*** : Though simple to use, TensorLayer does not require you to make any compromise in the performance of TensorFlow (Check the following benchmark section for more details).\n\nTensorLayer stands at a unique spot in the TensorFlow wrappers. Other wrappers like Keras and TFLearn\nhide many powerful features of TensorFlow and provide little support for writing custom AI models. Inspired by PyTorch, TensorLayer APIs are simple, flexible and Pythonic,\nmaking it easy to learn while being flexible enough to cope with complex AI tasks.\nTensorLayer has a fast-growing community. It has been used by researchers and engineers all over the world, including those from  Peking University,\nImperial College London, UC Berkeley, Carnegie Mellon University, Stanford University, and companies like Google, Microsoft, Alibaba, Tencent, Xiaomi, and Bloomberg.\n\n# Multilingual Documents\n\nTensorLayer has extensive documentation for both beginners and professionals. The documentation is available in\nboth English and Chinese.\n\n[![English Documentation](https://img.shields.io/badge/documentation-english-blue.svg)](https://tensorlayer.readthedocs.io/)\n[![Chinese Documentation](https://img.shields.io/badge/documentation-%E4%B8%AD%E6%96%87-blue.svg)](https://tensorlayercn.readthedocs.io/)\n[![Chinese Book](https://img.shields.io/badge/book-%E4%B8%AD%E6%96%87-blue.svg)](http://www.broadview.com.cn/book/5059/)\n\nIf you want to try the experimental features on the the master branch, you can find the latest document\n[here](https://tensorlayer.readthedocs.io/en/latest/).\n\n# Extensive Examples\n\nYou can find a large collection of examples that use TensorLayer in [here](examples/) and the following space:\n\n\u003ca href=\"https://github.com/tensorlayer/awesome-tensorlayer/blob/master/readme.md\" target=\"\\_blank\"\u003e\n\t\u003cdiv align=\"center\"\u003e\n\t\t\u003cimg src=\"img/awesome-mentioned.png\" width=\"40%\"/\u003e\n\t\u003c/div\u003e\n\u003c/a\u003e\n\n# Getting Start\n\nTensorLayer 2.0 relies on TensorFlow, numpy, and others. To use GPUs, CUDA and cuDNN are required.\n\nInstall TensorFlow:\n\n```bash\npip3 install tensorflow-gpu==2.0.0-rc1 # TensorFlow GPU (version 2.0 RC1)\npip3 install tensorflow # CPU version\n```\n\nInstall the stable release of TensorLayer:\n\n```bash\npip3 install tensorlayer\n```\n\nInstall the unstable development version of TensorLayer:\n\n```bash\npip3 install git+https://github.com/tensorlayer/tensorlayer.git\n```\n\nIf you want to install the additional dependencies, you can also run\n```bash\npip3 install --upgrade tensorlayer[all]              # all additional dependencies\npip3 install --upgrade tensorlayer[extra]            # only the `extra` dependencies\npip3 install --upgrade tensorlayer[contrib_loggers]  # only the `contrib_loggers` dependencies\n```\n\nIf you are TensorFlow 1.X users, you can use TensorLayer 1.11.0:\n\n```bash\n# For last stable version of TensorLayer 1.X\npip3 install --upgrade tensorlayer==1.11.0\n```\n\n\u003c!---\n## Using Docker\n\nThe [TensorLayer containers](https://hub.docker.com/r/tensorlayer/tensorlayer/) are built on top of the official [TensorFlow containers](https://hub.docker.com/r/tensorflow/tensorflow/):\n\n### Containers with CPU support\n\n```bash\n# for CPU version and Python 2\ndocker pull tensorlayer/tensorlayer:latest\ndocker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest\n\n# for CPU version and Python 3\ndocker pull tensorlayer/tensorlayer:latest-py3\ndocker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-py3\n```\n\n### Containers with GPU support\n\nNVIDIA-Docker is required for these containers to work: [Project Link](https://github.com/NVIDIA/nvidia-docker)\n\n```bash\n# for GPU version and Python 2\ndocker pull tensorlayer/tensorlayer:latest-gpu\nnvidia-docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu\n\n# for GPU version and Python 3\ndocker pull tensorlayer/tensorlayer:latest-gpu-py3\nnvidia-docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu-py3\n```\n---\u003e\n\n# Performance Benchmark\n\nThe following table shows the training speeds of [VGG16](http://www.robots.ox.ac.uk/~vgg/research/very_deep/) using TensorLayer and native TensorFlow on a TITAN Xp.\n\n|   Mode    |       Lib       |  Data Format  | Max GPU Memory Usage(MB)  |Max CPU Memory Usage(MB) | Avg CPU Memory Usage(MB) | Runtime (sec) |\n| :-------: | :-------------: | :-----------: | :-----------------: | :-----------------: | :-----------------: | :-----------: |\n| AutoGraph | TensorFlow 2.0  | channel last  | 11833 |      2161         |        2136         |      74       |\n|           | TensorLayer 2.0 | channel last  | 11833 |      2187         |        2169         |      76       |\n|   Graph   |      Keras      | channel last  | 8677 |      2580         |        2576         |      101       |\n|   Eager   | TensorFlow 2.0  | channel last  | 8723 |      2052         |        2024         |      97       |\n|           | TensorLayer 2.0 | channel last  | 8723 |      2010         |        2007         |      95       |\n\n# Getting Involved\n\nPlease read the [Contributor Guideline](CONTRIBUTING.md) before submitting your PRs.\n\nWe suggest users to report bugs using Github issues. Users can also discuss how to use TensorLayer in the following slack channel.\n\n\u003cbr/\u003e\n\n\u003ca href=\"https://join.slack.com/t/tensorlayer/shared_invite/enQtODk1NTQ5NTY1OTM5LTQyMGZhN2UzZDBhM2I3YjYzZDBkNGExYzcyZDNmOGQzNmYzNjc3ZjE3MzhiMjlkMmNiMmM3Nzc4ZDY2YmNkMTY\" target=\"\\_blank\"\u003e\n\t\u003cdiv align=\"center\"\u003e\n\t\t\u003cimg src=\"img/join_slack.png\" width=\"40%\"/\u003e\n\t\u003c/div\u003e\n\u003c/a\u003e\n\n\u003cbr/\u003e\n\n# Citing TensorLayer\n\nIf you find TensorLayer useful for your project, please cite the following papers：\n\n```\n@article{tensorlayer2017,\n    author  = {Dong, Hao and Supratak, Akara and Mai, Luo and Liu, Fangde and Oehmichen, Axel and Yu, Simiao and Guo, Yike},\n    journal = {ACM Multimedia},\n    title   = {{TensorLayer: A Versatile Library for Efficient Deep Learning Development}},\n    url     = {http://tensorlayer.org},\n    year    = {2017}\n}\n\n@inproceedings{tensorlayer2021,\n  title={Tensorlayer 3.0: A Deep Learning Library Compatible With Multiple Backends},\n  author={Lai, Cheng and Han, Jiarong and Dong, Hao},\n  booktitle={2021 IEEE International Conference on Multimedia \\\u0026 Expo Workshops (ICMEW)},\n  pages={1--3},\n  year={2021},\n  organization={IEEE}\n}\n```\n","funding_links":[],"categories":["The Data Science Toolbox","Python","Reinforcement Learning","时间序列","强化学习"],"sub_categories":["Deep Learning Packages","Others","网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorlayer%2FTensorLayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensorlayer%2FTensorLayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorlayer%2FTensorLayer/lists"}