tensorlayer

Deep Learning and Reinforcement Learning Library for Scientists

Github星跟蹤圖

GitHub last commit (branch)
Supported TF Version
Documentation Status
Build Status
Downloads
Docker Pulls
Codacy Badge

TensorLayer 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 complex AI models. TensorLayer is awarded the 2017 Best Open Source Software by the ACM Multimedia Society.
TensorLayer can also be found at iHub and Gitee.

News

? Reinforcement Learning Model Zoo: Low-level APIs for Research and High-level APIs for Production

? Sipeed Maxi-EMC: Run TensorLayer models on the low-cost AI chip (e.g., K210) (Alpha Version)

? Free GPU and storage resources: TensorLayer users can access to free GPU and storage resources donated by SurgicalAI. Thank you SurgicalAI!

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.
  • 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.

Multilingual Documents

TensorLayer has extensive documentation for both beginners and professionals. The documentation is available in
both English and Chinese.

English Documentation
Chinese Documentation
Chinese Book

If you want to try the experimental features on the the master branch, you can find the latest document
here.

Extensive Examples

You can find a large collection of examples that use TensorLayer in here and the following space:

Getting Start

TensorLayer 2.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 TensorLayer:

pip3 install tensorlayer

Install the unstable development version of TensorLayer:

pip3 install git+https://github.com/tensorlayer/tensorlayer.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 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

Performance Benchmark

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, # Getting Involved

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.

Citing TensorLayer

If you find TensorLayer useful for your project, please cite the following 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}
}

主要指標

概覽
名稱與所有者tensorlayer/TensorLayer
主編程語言Python
編程語言Python (語言數: 5)
平台
許可證Other
所有者活动
創建於2016-06-07 15:55:16
推送於2023-02-18 07:58:21
最后一次提交2023-02-18 15:58:21
發布數83
最新版本名稱3.0.0-alpha (發布於 )
第一版名稱v1.2 (發布於 2016-09-13 00:50:21)
用户参与
星數7.4k
關注者數454
派生數1.6k
提交數3.4k
已啟用問題?
問題數467
打開的問題數26
拉請求數530
打開的拉請求數10
關閉的拉請求數159
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?