Skip to content

Commit 846bde7

Browse files
committed
2 parents 7523817 + eee2d38 commit 846bde7

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
TensorLayer is a deep learning and reinforcement learning library based on [TensorFlow](https://www.tensorflow.org). It provides rich data processing, model training and serving modules to help both **researchers** and **engineers** build practical machine learning workflows.
1919

20-
- Useful links: [Documentation](http://tensorlayer.readthedocs.io) [Examples](http://tensorlayer.readthedocs.io/en/latest/user/example.html) [Tricks](https://github.com/wagamamaz/tensorlayer-tricks) [Slack](https://join.slack.com/t/tensorlayer/shared_invite/MjI1NjQ5NTUxOTY5LTE1MDI3MDYwNTItYzYwNmFiZmZkOA) [中文文档](https://tensorlayercn.readthedocs.io)
20+
- Useful links: [Documentation](http://tensorlayer.readthedocs.io), [Examples](http://tensorlayer.readthedocs.io/en/latest/user/example.html), [Tricks](https://github.com/wagamamaz/tensorlayer-tricks), [Slack](https://join.slack.com/t/tensorlayer/shared_invite/MjI1NjQ5NTUxOTY5LTE1MDI3MDYwNTItYzYwNmFiZmZkOA), [Chinese Documentation](https://tensorlayercn.readthedocs.io)
2121

22-
# What's New
22+
# News
2323
* [Sep] New example [Chatbot in 200 lines of code](https://github.com/zsdonghao/seq2seq-chatbot) for [Seq2Seq](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#simple-seq2seq).
2424
* [Sep] Release [ROI layer](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#roi-layer) for Object Detection.
2525
* [Aug] Release [Sub-pixel Convolution 1D](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#d-supixel-convolutional) for Audio Super-resolution.
@@ -106,9 +106,7 @@ Examples can be found [in this folder](https://github.com/zsdonghao/tensorlayer/
106106
[QQ group](https://github.com/zsdonghao/tensorlayer/blob/master/img/img_qq.png) and [Wechat group](https://github.com/shorxp/tensorlayer-chinese/blob/master/docs/wechat_group.md).
107107

108108

109-
110-
111-
# Design Philosophy
109+
# Design Principles
112110

113111
As deep learning practitioners, we have been looking for a library that can serve for various development phases. This library shall be easy for beginners by providing rich neural network reference implementations. Later, it can be extended to address **real-world problems** by controlling training backends to exhibit low-level cognitive behaviours. In the end, it shall be able to serve in challenging **production environments**.
114112

@@ -118,9 +116,21 @@ TensorLayer is designed for beginning, intermediate and professional deep learni
118116
A user often find it easy to bootstrap with TensorLayer, and then dive into low-level implementation only if need.
119117
- *Transparency* : TensorLayer provides access to the **native APIs** of TensorFlow. This helps users achieve flexible controls within the training engine.
120118
- *Composability* : If possible, deep learning modules are composed, not built. TensorLayer can glue existing pieces together (e.g., **connected with** [TF-Slim](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#connect-tf-slim) and [Keras](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#connect-keras)).
121-
- *Performance* : TensorLayer provides **zero-cost** compatibility for TensorFlow. It can run on distributed yet heterogeneous platforms.
119+
- *Performance* : TensorLayer provides **zero-cost** abstraction (see Benchmark below). It can run on distributed and heterogeneous TensorFlow platforms with full power.
120+
121+
# Benchmark
122+
123+
A common concern towards TensorLayer
124+
is performance overhead. We investigate this by running classic
125+
models using TensorLayer and native TensorFlow implementations
126+
on a Titan X Pascal GPU. The following are the training throughputs of respective tasks:
127+
128+
| | CIFAR-10 | PTB LSTM | Word2Vec |
129+
|------------- |--------------- |--------------- |--------------- |
130+
| TensorLayer | 2528 images/s | 18063 words/s | 58167 words/s |
131+
| TensorFlow | 2530 images/s | 18075 words/s | 58181 words/s |
122132

123-
# Why TensorLayer
133+
# Frequent Questions
124134

125135
A frequent question regarding TensorLayer is what is the different with other libraries like Keras, TFSlim and Tflearn.
126136
These libraries are comfortable to start with. They provide imperative abstractions to lower adoption barrier;
@@ -131,7 +141,6 @@ Without compromise in simplicity, TensorLayer advocates a more flexible and comp
131141
neural network libraries shall be used interchangeably with the native engine.
132142
This allows users to enjoy the ease of pre-built modules without losing visibility to the deep.
133143
This non-intrusive nature also makes it viable to consolidate with other TF's wrappers.
134-
However, flexibility does not sacrifice performance. TensorLayer allows seamless distributed and heterogeneous deployment.
135144

136145
TensorLayer is in an active development stage and has received numerous contributions from an open community.
137146
It has been widely used by researchers from Imperial College London, Carnegie Mellon University, Stanford University,

0 commit comments

Comments
 (0)