From 0f42d2db9028609e83dbf75ea28ab1c8b353b9cf Mon Sep 17 00:00:00 2001 From: dsteiner93 Date: Fri, 4 Dec 2015 18:36:31 -0800 Subject: [PATCH] Fix mistake in backend documentation The comments for all-zeros and all-ones were reversed in backend.md --- docs/sources/backend.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/backend.md b/docs/sources/backend.md index 28ee2c335d2a..72c0da1649ad 100644 --- a/docs/sources/backend.md +++ b/docs/sources/backend.md @@ -49,9 +49,9 @@ val = np.random.random((3, 4, 5)) var = K.variable(value=val) # all-zeros variable: -var = K.ones(shape=(3, 4, 5)) -# all-ones: var = K.zeros(shape=(3, 4, 5)) +# all-ones: +var = K.ones(shape=(3, 4, 5)) ``` Most tensor operations you will need can be done as you would in TensorFlow or Theano: