High Level Tensorflow Deep Learning Library for Researcher and Engineer.
Project description
TensorLayer is a novel TensorFlow-based deep learning and reinforcement learning library designed for researchers and engineers. It provides a large collection of customizable neural layers / functions that are key to build real-world AI applications. TensorLayer is awarded the 2017 Best Open Source Software by the ACM Multimedia Society.
Design Features
TensorLayer is a new deep learning library designed with simplicity, flexibility and high-performance in mind.
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).
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.
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).
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.
Install
TensorLayer has pre-requisites including TensorFlow, numpy, and others. For GPU support, CUDA and cuDNN are required. The simplest way to install TensorLayer is to use the Python Package Index (PyPI):
# for last stable version
pip install --upgrade tensorlayer
# for latest release candidate
pip install --upgrade --pre tensorlayer
# if you want to install the additional dependencies, you can also run
pip install --upgrade tensorlayer[all] # all additional dependencies
pip install --upgrade tensorlayer[extra] # only the `extra` dependencies
pip install --upgrade tensorlayer[contrib_loggers] # only the `contrib_loggers` dependencies
Alternatively, you can install the latest or development version by directly pulling from github:
pip install https://github.com/tensorlayer/tensorlayer/archive/master.zip
# or
# pip install https://github.com/tensorlayer/tensorlayer/archive/<branch-name>.zip
Using Docker - a ready-to-use environment
The TensorLayer containers are built on top of the official TensorFlow containers:
Containers with CPU support
# for CPU version and Python 2
docker pull tensorlayer/tensorlayer:latest
docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest
# for CPU version and Python 3
docker pull tensorlayer/tensorlayer:latest-py3
docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-py3
Containers with GPU support
NVIDIA-Docker is required for these containers to work: Project Link
# for GPU version and Python 2
docker pull tensorlayer/tensorlayer:latest-gpu
nvidia-docker run -it --rm -p 8888:88888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu
# for GPU version and Python 3
docker pull tensorlayer/tensorlayer:latest-gpu-py3
nvidia-docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu-py3
Contribute
Please read the Contributor Guideline before submitting your PRs.
Cite
If you find this project useful, we would be grateful if you cite the TensorLayer paper:
@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} }
License
TensorLayer is released under the Apache 2.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file tensorlayer-2.2.2.tar.gz
.
File metadata
- Download URL: tensorlayer-2.2.2.tar.gz
- Upload date:
- Size: 258.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf78ca63fe677bfc25a1c10297d7211af9d4ae907c6bc5c54809baa0fd92a03 |
|
MD5 | 6d507c5bb1739367358d9650932d9ef0 |
|
BLAKE2b-256 | 10d0c9c2f2bd7682e9966e915e3b1f2cccbae7d435ae43d8c9885923ce87a55a |
Provenance
File details
Details for the file tensorlayer-2.2.2-py3-none-any.whl
.
File metadata
- Download URL: tensorlayer-2.2.2-py3-none-any.whl
- Upload date:
- Size: 363.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d3caa94ec09645897188401332a1638bfd1b1473a57d510074773feaf2873d |
|
MD5 | 6405b707e47b1ae8e1bad6b4dc5816a0 |
|
BLAKE2b-256 | 80d1c6fff39bafd0f2b5fef71ddd63d65b9051b8ce02bfe278b3bf233e490fd4 |
Provenance
File details
Details for the file tensorlayer-2.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: tensorlayer-2.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 363.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9903fac931c112445fd1ff32bd08e239975cc01471a98ac992db7bb42cfa705 |
|
MD5 | 5776657675481a08cf79ec6bb13f4c1b |
|
BLAKE2b-256 | b538649335834743e8ccc797dfc975d46af86558a37834a4fda8888544a0ee3a |