Package: tensorlayer
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 theACM Multimedia
Society.Design FeaturesTensorLayer 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.InstallTensorLayer 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 versionpipinstall--upgradetensorlayer# for latest release candidatepipinstall--upgrade--pretensorlayer# if you want to install the additional dependencies, you can also runpipinstall--upgradetensorlayer[all]# all additional dependenciespipinstall--upgradetensorlayer[extra]# only the `extra` dependenciespipinstall--upgradetensorlayer[contrib_loggers]# only the `contrib_loggers` dependenciesAlternatively, you can install the latest or development version by directly pulling from github:pipinstallhttps://github.com/tensorlayer/tensorlayer/archive/master.zip# or
# pip install https://github.com/tensorlayer/tensorlayer/archive/<branch-name>.zipUsing Docker - a ready-to-use environmentTheTensorLayer
containersare
built on top of the officialTensorFlow
containers:Containers with CPU support# for CPU version and Python 2dockerpulltensorlayer/tensorlayer:latestdockerrun-it--rm-p8888:8888-p6006:6006-ePASSWORD=JUPYTER_NB_PASSWORDtensorlayer/tensorlayer:latest# for CPU version and Python 3dockerpulltensorlayer/tensorlayer:latest-py3dockerrun-it--rm-p8888:8888-p6006:6006-ePASSWORD=JUPYTER_NB_PASSWORDtensorlayer/tensorlayer:latest-py3Containers with GPU supportNVIDIA-Docker is required for these containers to work:Project
Link# for GPU version and Python 2dockerpulltensorlayer/tensorlayer:latest-gpunvidia-dockerrun-it--rm-p8888:88888-p6006:6006-ePASSWORD=JUPYTER_NB_PASSWORDtensorlayer/tensorlayer:latest-gpu# for GPU version and Python 3dockerpulltensorlayer/tensorlayer:latest-gpu-py3nvidia-dockerrun-it--rm-p8888:8888-p6006:6006-ePASSWORD=JUPYTER_NB_PASSWORDtensorlayer/tensorlayer:latest-gpu-py3ContributePlease read theContributor
Guidelinebefore submitting your PRs.CiteIf you find this project useful, we would be grateful if you cite the
TensorLayer 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}LicenseTensorLayer is released under the Apache 2.0 license.