Welcome to TensorLayer¶

Good News: We won the Best Open Source Software Award @ACM Multimedia (MM) 2017.
TensorLayer is a Deep Learning (DL) and Reinforcement Learning (RL) library extended from Google TensorFlow. It provides popular DL and RL modules that can be easily customized and assembled for tackling real-world machine learning problems. More details can be found here.
Note
If you got problem to read the docs online, you could download the repository
on GitHub, then go to /docs/_build/html/index.html
to read the docs
offline. The _build
folder can be generated in docs
using make html
.
User Guide¶
The TensorLayer user guide explains how to install TensorFlow, CUDA and cuDNN, how to build and train neural networks using TensorLayer, and how to contribute to the library as a developer.
API Reference¶
If you are looking for information on a specific function, class or method, this part of the documentation is for you.
- API - Layers
- Understanding the Basic Layer
- Customizing Layers
- Layer list
- Name Scope and Sharing Parameters
- Basic layer
- Input layer
- One-hot layer
- Word Embedding Input layer
- Dense layer
- Noise layer
- Convolutional layer (Pro)
- Convolutional layer (Simplified)
- Super-Resolution layer
- Spatial Transformer
- Pooling and Padding layers
- Normalization layer
- Object Detection
- Time distributed layer
- Fixed Length Recurrent layer
- Recurrent Convolutional layer
- Advanced Ops for Dynamic RNN
- Dynamic RNN layer
- Sequence to Sequence
- Shape layer
- Lambda layer
- Merge layer
- Extend layer
- Stack layer
- Connect TF-Slim
- Parametric activation layer
- Flow control layer
- Helper functions
- API - Cost
- Your cost function
- Softmax cross entropy
- Sigmoid cross entropy
- Binary cross entropy
- Mean squared error (L2)
- Normalized mean square error
- Absolute difference error (L1)
- Dice coefficient
- Hard Dice coefficient
- IOU coefficient
- Cross entropy for sequence
- Cross entropy with mask for sequence
- Cosine similarity
- Regularization functions
- API - Preprocessing
- API - Iteration
- API - Utility
- API - Natural Language Processing
- API - Reinforcement Learning
- API - Files
- API - Visualization
- API - Activations
- API - Distributed Training
Command-line Reference¶
TensorLayer provides a handy command-line tool tl to perform some common tasks.