Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Eric_lai d7dd9b8b30 | 2 years ago | |
---|---|---|
.circleci | 4 years ago | |
.github | 6 years ago | |
docker | 4 years ago | |
docs | 2 years ago | |
examples | 2 years ago | |
img | 2 years ago | |
requirements | 2 years ago | |
scripts | 5 years ago | |
tensorlayer | 2 years ago | |
tests | 2 years ago | |
.codacy.yaml | 4 years ago | |
.dockerignore | 6 years ago | |
.gitignore | 5 years ago | |
.pyup.yml | 5 years ago | |
.readthedocs.yml | 5 years ago | |
.travis.yml | 4 years ago | |
CHANGELOG.md | 3 years ago | |
CONTRIBUTING.md | 5 years ago | |
LICENSE.rst | 3 years ago | |
Makefile | 4 years ago | |
README.md | 2 years ago | |
README.rst | 2 years ago | |
setup.cfg | 4 years ago | |
setup.py | 4 years ago | |
setup.travis.cfg | 5 years ago | |
setup.travis_doc.cfg | 5 years ago | |
tensorlayer_cn.md | 2 years ago | |
tl | 6 years ago |
TensorLayer is a deep learning library designed for researchers and engineers that is compatible with multiple deep learning frameworks. It provides an extensive collection of customizable neural layers to build advanced AI models quickly, based on this, the community open-sourced mass tutorials and applications. TensorLayer is awarded the 2017 Best Open Source Software by the ACM Multimedia Society.
This project can also be found at iHub and Gitee.
🔥 3.0.0 has been pre-released, it supports TensorFlow and MindSpore backends, and supports some PaddlePaddle operator backends, allowing users to run the code on different hardware like Nvidia-GPU and Huawei-Ascend. It will support TensorFlow, MindSpore, PaddlePaddle, and PyTorch backends in the future. Feel free to use it and make suggestions. We need more people to join the dev team, if you are interested, please email hao.dong@pku.edu.cn
🔥 Reinforcement Learning Zoo: Low-level APIs for professional usage, High-level APIs for simple usage, and a corresponding Springer textbook
🔥 Sipeed Maxi-EMC: Run TensorLayer models on the low-cost AI chip (e.g., K210) (Alpha Version)
TensorLayer is a new deep learning library designed with simplicity, flexibility and high-performance in mind.
TensorLayer stands at a unique spot in the TensorFlow wrappers. Other wrappers like Keras and TFLearn hide many powerful features of TensorFlow and provide little support for writing custom AI models. Inspired by PyTorch, TensorLayer APIs are simple, flexible and Pythonic, making it easy to learn while being flexible enough to cope with complex AI tasks.TensorLayer has a fast-growing community. It has been used by researchers and engineers all over the world, including those from Peking University,Imperial College London, UC Berkeley, Carnegie Mellon University Stanford University, and companies like Google, Microsoft, Alibaba, Tencent, Xiaomi, and Bloomberg.
TensorLayer has extensive documentation for both beginners and professionals. The documentation is available in
both English and Chinese.
If you want to try the experimental features on the the master branch, you can find the latest document
here.
You can find a large collection of examples that use TensorLayer in here and the following space:
Comparison of TensorLayer version
TensorLayer 3.0 relies on TensorFlow, numpy, and others. To use GPUs, CUDA and cuDNN are required.
Install TensorFlow:
pip3 install tensorflow-gpu==2.0.0-rc1 # TensorFlow GPU (version 2.0 RC1)
pip3 install tensorflow # CPU version
Install the stable release of TensorLayer3:
pip3 install tensorlayer3
Install the stable release of TensorLayer2.x:
pip3 install tensorlayer
Install the unstable development version of TensorLayer3:
pip3 install git+https://git.openi.org.cn/TensorLayer/tensorlayer3.0.git
If you want to install the additional dependencies, you can also run
pip3 install --upgrade tensorlayer[all] # all additional dependencies
pip3 install --upgrade tensorlayer[extra] # only the `extra` dependencies
pip3 install --upgrade tensorlayer[contrib_loggers] # only the `contrib_loggers` dependencies
If you want to use mindspore backend, you should install mindspore>=1.2.1
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.2.1/MindSpore/gpu/ubuntu_x86/cuda-10.1/mindspore_gpu-1.2.1-cp37-cp37m-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
If you want to use paddlepaddle backend, you should install paddlepaddle>=2.1.1
python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
If you are TensorFlow 1.X users, you can use TensorLayer 1.11.0:
# For last stable version of TensorLayer 1.X
pip3 install --upgrade tensorlayer==1.11.0
The following table shows the training speeds of VGG16 using TensorLayer and native TensorFlow on a TITAN Xp.
Mode | Lib | Data Format | Max GPU Memory Usage(MB) | Max CPU Memory Usage(MB) | Avg CPU Memory Usage(MB) | Runtime (sec) |
---|---|---|---|---|---|---|
AutoGraph | TensorFlow 2.0 | channel last | 11833 | 2161 | 2136 | 74 |
TensorLayer 2.0 | channel last | 11833 | 2187 | 2169 | 76 | |
Graph | Keras | channel last | 8677 | 2580 | 2576 | 101 |
Eager | TensorFlow 2.0 | channel last | 8723 | 2052 | 2024 | 97 |
TensorLayer 2.0 | channel last | 8723 | 2010 | 2007 | 95 | |
TensorLayer 3.0 | channel last |
Please read the Contributor Guideline before submitting your PRs.
We suggest users to report bugs using Github issues. Users can also discuss how to use TensorLayer in the following slack channel.
If you find TensorLayer useful for your project, please cite the following papers:
@article{tensorlayer2017,
author = {Dong, Hao and Supratak, Akara and Mai, Luo and Liu, Fangde and Oehmichen, Axel and Yu, Simiao and Guo, Yike},
journal = {ACM Multimedia},
title = {{TensorLayer: A Versatile Library for Efficient Deep Learning Development}},
url = {http://tensorlayer.org},
year = {2017}
}
@inproceedings{tensorlayer2021,
title={Tensorlayer 3.0: A Deep Learning Library Compatible With Multiple Backends},
author={Lai, Cheng and Han, Jiarong and Dong, Hao},
booktitle={2021 IEEE International Conference on Multimedia \& Expo Workshops (ICMEW)},
pages={1--3},
year={2021},
organization={IEEE}
}
TensorLayer3.0一款兼容多深度学习框架后端的深度学习库, 目前可以用TensorFlow、MindSpore、PaddlePaddle作为后端计算引擎。
Python Markdown INI other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》