From 1a8880fef1928992b94daf424c390460981012f3 Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Mon, 2 Jul 2018 05:11:27 -0700 Subject: [PATCH] Correctly indent `insert_grad_of` code block. (#81) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1b2f6d4..55033ee 100644 --- a/README.md +++ b/README.md @@ -172,9 +172,9 @@ You can use the `insert_grad_of` feature to do more than debugging and logging. def f(params, x): h = x for i in range(5): - with insert_grad_of(h) as g: - g = tf.clip_by_value(g, -1, 1) - h = rnn(params, h) + with insert_grad_of(h) as g: + g = tf.clip_by_value(g, -1, 1) + h = rnn(params, h) return h dfdparams = tangent.grad(f)