[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch 171672655 #13606

Closed
wants to merge 66 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
bbfef93
Convert shape to TensorShape when creating _VariableFromResource
akshayka Oct 6, 2017
eb1a0a5
(1) Adds broadcasting to scaled_softplus
tensorflower-gardener Oct 6, 2017
e744cca
Changes Relu6Grad to depend on relu6's output rather than its input, …
tensorflower-gardener Oct 6, 2017
25e6d23
Adds helpers for bucketing strategies for TF monitoring samplers.
vinuraja Oct 6, 2017
c5f715f
Update ops-related pbtxt files.
tensorflower-gardener Oct 6, 2017
710efee
Bump min graph consumer version when adding functions to it
iganichev Oct 6, 2017
a713e49
Go: Update generated wrapper functions for TensorFlow ops.
tensorflower-gardener Oct 6, 2017
d9a969c
Disable some tests on tsan.
gunan Oct 6, 2017
6fc7de9
Define object-oriented metrics classes that are Eager-safe.
tensorflower-gardener Oct 6, 2017
c26542c
[XLA] Don't clone and throw away instructions without calling DetachF…
Oct 7, 2017
fb3c68d
Disable keras:models_test in tsan mode.
gunan Oct 7, 2017
646db3e
eager: Compute num_gpus() correctly.
asimshankar Oct 7, 2017
96d276f
Improvements and fixes in VirtualPlacer:
yacoder Oct 7, 2017
010dd39
Disable predict_test under tsan.
gunan Oct 7, 2017
5a107a9
Fix broken docs links to other TensorFlow interfaces in tf.contrib.le…
nealwu Oct 7, 2017
394e560
Add a custom estimator example to the regression cookbook.
MarkDaoust Oct 7, 2017
f8f1cce
Log in executor when a synchronous node is finished.
reedwm Oct 7, 2017
8433946
Make name scopes consistent.
tensorflower-gardener Oct 7, 2017
54b8c7b
Mirror SQLite zip file
jart Oct 8, 2017
3431602
Disable kmeans test in tsan.
gunan Oct 8, 2017
cab4f6f
Improve invalid size vocab ValueError by appending the vocab file.
tensorflower-gardener Oct 8, 2017
e0924e0
[TFXLA] Don't discard status unless it is NotFound.
jpienaar Oct 8, 2017
21da236
Disable flaky cluster_function_library_runtime_test in opensource.
gunan Oct 9, 2017
bb789ad
[TF:XLA] Rename HloOpcode::kLogicalX to kX
tensorflower-gardener Oct 9, 2017
edfb9bb
Correct documentation typo.
asimshankar Oct 9, 2017
b0b92fd
[tf.data] Add new custom transformation: `tf.contrib.data.scan()`.
mrry Oct 9, 2017
4878a28
Update ops-related pbtxt files.
tensorflower-gardener Oct 9, 2017
7e2b50d
Update docs of MomentumOptimizer about use_nesterov and of RMSProp about
tensorflower-gardener Oct 9, 2017
5bba158
Print numpy value for variables when in Eager mode
akshayka Oct 9, 2017
ff80191
Estimator.predict should not generate warning if user uses TF dataset.
Oct 9, 2017
15dd5fd
Track persistent memory in constant op.
Oct 9, 2017
e56628b
[TF:XLA] Rename ComputationBuilder::LogicalX to X
tensorflower-gardener Oct 9, 2017
4a97a82
Validate input shapes for the graph_callable decorator
akshayka Oct 9, 2017
8ed8e22
Make ops_test.py work with the C API enabled.
skye Oct 9, 2017
1ba562a
Rewrote the clip_by_norm op to avoid generating infinite intermediate…
benoitsteiner Oct 9, 2017
27df639
[Grappler] Correctly replace control-dependency uses.
Oct 9, 2017
11c123b
[TF:XLA] Rename HLO visitor methods from LogicalX to X
tensorflower-gardener Oct 9, 2017
0ac688a
Adding a binary classification example
tensorflower-gardener Oct 9, 2017
7e4e336
Relanding change to add config to enable S3 file system support.
Oct 9, 2017
7c74d2f
Expose tfe.test, tfe.in_eager_mode, tfe.in_graph_mode
alextp Oct 9, 2017
be69f13
[TF:XLA] Fix broken build of xla_interpreter_device.
hawkinsp Oct 9, 2017
33d5512
[Grappler] Fixed two bugs in ArithmeticOptimizer.
Oct 9, 2017
8814502
Removing side outputs from tape code.
alextp Oct 9, 2017
f49f6cd
Replace CHECK() with a WARNING in StepStatsCollector so that Save aft…
tensorflower-gardener Oct 9, 2017
0cbd8c7
New CUDA kernel for LSTMBlockCell's forward propagation.
tensorflower-gardener Oct 10, 2017
319d823
TFE: Fix reference counts when copying to Numpy arrays.
allenlavoie Oct 10, 2017
3a52d39
New CUDA kernel for LSTMBlockCell's forward propagation.
tensorflower-gardener Oct 10, 2017
fdb2b12
TFE: Fix reference counts when copying to Numpy arrays.
allenlavoie Oct 10, 2017
8ff5070
[Grappler] Optimize bitcasts.
Oct 10, 2017
319a359
Create a cuda9 cudnn 7 docker file, simpler, using ARGS.
gunan Oct 10, 2017
52d3a84
Fix wasserstein gradient penalty name scope issue and add the proper …
tensorflower-gardener Oct 10, 2017
485cb17
Fix the example in the RNN tutorial which left out one of the pieces …
nealwu Oct 10, 2017
07d78dd
Removes the use of tf.cond in the SweepHook used in the WALSMatrixFac…
tensorflower-gardener Oct 10, 2017
2cdd064
Make error message more explicit when running FusedConv2DBiasActivati…
tensorflower-gardener Oct 10, 2017
cd37dbb
Benchmark for LSTMBlockCell's forward propagation.
tensorflower-gardener Oct 10, 2017
103d383
Add scaled_softplus to the documented symbols so it can be accessed a…
tensorflower-gardener Oct 10, 2017
d08cb10
Scheduler exports tensor size info to RunMetadata. In addition, tenso…
tensorflower-gardener Oct 10, 2017
403e510
[XLA] Factor out repeated LatestNonGteAncestorAndIndex helper.
Oct 10, 2017
84f1b90
[XLA:LLVM] Rename ops.h to tuple_ops.h.
Oct 10, 2017
d98519b
[XLA:CPU] Let the elementwise concat op handle being emitted into a d…
Oct 10, 2017
4f102ff
Cache last zero tensor in eager gradient computation
iganichev Oct 10, 2017
effb22e
Use an external constant pool to reduce LLVM compile times
Oct 10, 2017
1be36dd
[TF:XLA] Re-enable strided slice tests that now pass.
hawkinsp Oct 10, 2017
90f257e
Fix ReshapeMover bug with reshaped constants; add HloVerifiedTestBase.
tensorflower-gardener Oct 10, 2017
5a26d1e
Minor cleanup (remove unused inclusions, NULL => nullptr)
tensorflower-gardener Oct 10, 2017
07bf1d3
Merge commit for internal changes
caisq Oct 10, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the example in the RNN tutorial which left out one of the pieces …
…of data.

PiperOrigin-RevId: 171611082
  • Loading branch information
nealwu authored and tensorflower-gardener committed Oct 10, 2017
commit 485cb179ea84c8de26263628510f930d07a98c4a
19 changes: 10 additions & 9 deletions tensorflow/docs_src/tutorials/recurrent.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ The core of the model consists of an LSTM cell that processes one word at a
time and computes probabilities of the possible values for the next word in the
sentence. The memory state of the network is initialized with a vector of zeros
and gets updated after reading each word. For computational reasons, we will
process data in mini-batches of size `batch_size`. In this example, it is important
to note that `current_batch_of_words` does not correspond to a "sentence" of words.
Every word in a batch should correspond to time t. Tensorflow will automatically sum
the gradients of each batch for you.
process data in mini-batches of size `batch_size`. In this example, it is
important to note that `current_batch_of_words` does not correspond to a
"sentence" of words. Every word in a batch should correspond to a time t.
TensorFlow will automatically sum the gradients of each batch for you.

For example:
```
Expand All @@ -63,16 +63,17 @@ For example:
[The, red, fox, jumped, high]

words_in_dataset[0] = [The, The]
words_in_dataset[1] = [fox, fox]
words_in_dataset[2] = [is, jumped]
words_in_dataset[3] = [quick, high]
num_batches = 4, batch_size = 2, time_steps = 5
words_in_dataset[1] = [brown, red]
words_in_dataset[2] = [fox, fox]
words_in_dataset[3] = [is, jumped]
words_in_dataset[4] = [quick, high]
batch_size = 2, time_steps = 5
```

The basic pseudocode is as follows:

```python
words_in_dataset = tf.placeholder(tf.float32, [num_batches, batch_size, num_features])
words_in_dataset = tf.placeholder(tf.float32, [time_steps, batch_size, num_features])
lstm = tf.contrib.rnn.BasicLSTMCell(lstm_size)
# Initial state of the LSTM memory.
hidden_state = tf.zeros([batch_size, lstm.state_size])
Expand Down