Welcome to TensorLayer¶

Documentation Version: 2.2.4
Jun 2020 Deep Reinforcement Learning Book Is Released.
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.
Stable Functionalities
- API - Activations
- API - Array Operations
- API - Cost
- 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 - Data Pre-Processing
- API - Files
- API - Iteration
- API - Layers
- Layer list
- Base Layer
- Input Layers
- Activation Layers
- Convolutional Layers
- Dense Layers
- Dropout Layers
- Extend Layers
- Image Resampling Layers
- Lambda Layers
- Merge Layers
- Noise Layer
- Normalization Layers
- Padding Layers
- Pooling Layers
- Quantized Nets
- Recurrent Layers
- Shape Layers
- Spatial Transformer
- Stack Layer
- Helper Functions
- API - Models
- API - Natural Language Processing
- API - Initializers
- API - Reinforcement Learning
- API - Utility
- API - Visualization
Alpha Version Functionalities
Command-line Reference¶
TensorLayer provides a handy command-line tool tl to perform some common tasks.
Command Line Interface