From 7489eb0b247205fac0fce6711eace18a6d4cd9a7 Mon Sep 17 00:00:00 2001 From: William Darling Date: Tue, 3 May 2016 16:46:10 +0200 Subject: [PATCH] fixed cond() example formatting --- contrib/Python/cntk/ops/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/Python/cntk/ops/__init__.py b/contrib/Python/cntk/ops/__init__.py index db885e1cb..9d2757a38 100644 --- a/contrib/Python/cntk/ops/__init__.py +++ b/contrib/Python/cntk/ops/__init__.py @@ -487,9 +487,9 @@ def cond(flag, value_if_true, value_if_false, name=None): Behaves analogously to numpy.where(...). Example: - >>> C.eval(C.cond([-10, -1, 0, 0.3, 100], [1, 10, 100, 1000, 10000], [ 2, 20, 200, 2000, 20000])) - [array([[ 1.00000000e+00, 1.00000000e+01, 2.00000000e+02, - 1.00000000e+03, 1.00000000e+04]])] + >>> C.eval(C.cond([-10, -1, 0, 0.3, 100], [1, 10, 100, 1000, 10000], [ 2, 20, 200, 2000, 20000])) + [array([[ 1.00000000e+00, 1.00000000e+01, 2.00000000e+02, + 1.00000000e+03, 1.00000000e+04]])] Args: flag: tensor