Skip to content

Commit

Permalink
update time_distributed & fix typo
Browse files Browse the repository at this point in the history
- Time Distributed layer can now take a Tensor or Python array as input
  • Loading branch information
aymericdamien committed Jul 26, 2016
1 parent 03f339b commit 68a8de8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/templates/tutorials/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TFLearn - Quick Start

In this tutorial, you will learn to use TFLearn and TensorFlow to estimate the surviving chance of Titanic passengers using their personal information (such as gender, age, etc...). To tackle this classic machine learning task, we are going to build a deep neural network classifier.
In this tutorial, you will learn to use TFLearn and TensorFlow to estimate Titanic passengers chance of surviving the sinking, using their personal information (such as gender, age, etc...). To tackle this classic machine learning task, we are going to build a deep neural network classifier.

## Prerequisite
Make sure that you have tensorflow and tflearn installed. If you don't, please follow these [instructions](http://tflearn.org/installation).
Expand Down
3 changes: 3 additions & 0 deletions tflearn/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ def time_distributed(incoming, fn, args=None, scope=None):
if not args: args = list()
assert isinstance(args, list), "'args' must be a list."

if not isinstance(incoming, tf.Tensor):
incoming = tf.transpose(tf.pack(incoming), [1, 0, 2])

input_shape = utils.get_incoming_shape(incoming)
timestep = input_shape[1]
x = tf.split(1, timestep, incoming)
Expand Down
2 changes: 1 addition & 1 deletion tutorials/intro/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TFLearn - Quick Start

In this tutorial, you will learn to use TFLearn and TensorFlow to estimate the surviving chance of Titanic passengers using their personal information (such as gender, age, etc...). To tackle this classic machine learning task, we are going to build a deep neural network classifier.
In this tutorial, you will learn to use TFLearn and TensorFlow to estimate Titanic passengers chance of surviving the sinking, using their personal information (such as gender, age, etc...). To tackle this classic machine learning task, we are going to build a deep neural network classifier.

## Prerequisite
Make sure that you have tensorflow and tflearn installed. If you don't, please follow these [instructions](http://tflearn.org/installation).
Expand Down

0 comments on commit 68a8de8

Please sign in to comment.