From 9c492fb395c474b9ce5bc770c284db2952e0be07 Mon Sep 17 00:00:00 2001 From: Aayush Garg Date: Tue, 12 Apr 2016 23:28:31 -0700 Subject: [PATCH] Move scipy import into False clause --- contrib/Python/cntk/test/test_graph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/Python/cntk/test/test_graph.py b/contrib/Python/cntk/test/test_graph.py index d104feea7..6ffc4d076 100644 --- a/contrib/Python/cntk/test/test_graph.py +++ b/contrib/Python/cntk/test/test_graph.py @@ -4,7 +4,6 @@ from ..graph import _tensor_to_text_format import pytest -import scipy.sparse # keeping things short A = np.asarray @@ -83,6 +82,8 @@ def test_tensor_conversion_dense(alias, idx, data, expected): has_sequence_dimension=False) == expected if False: + import scipy.sparse + @pytest.mark.parametrize("alias, data, expected", [ ('W', [A({})], ""), ('W', [{3: 1, 50: 1, 2: 0}, {1: -5}], """\