From bff3002794e14b0ef14fc1a2e320a2992a62b973 Mon Sep 17 00:00:00 2001 From: liqun fu Date: Wed, 15 Aug 2018 13:47:56 -0700 Subject: [PATCH] fix python 2.7 tuple unpacking error --- bindings/python/cntk/tests/onnx_op_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/python/cntk/tests/onnx_op_test.py b/bindings/python/cntk/tests/onnx_op_test.py index c3b7b641c..4b5619970 100644 --- a/bindings/python/cntk/tests/onnx_op_test.py +++ b/bindings/python/cntk/tests/onnx_op_test.py @@ -1356,8 +1356,9 @@ def test_Slice(tmpdir, dtype): def test_SequenceSlice(tmpdir, dtype, beginIndex, endIndex): batch_size = 1 sequence_length = 5 - feature_shape = (3,) - shape = (batch_size, sequence_length, *feature_shape) + input_size = 3 + feature_shape = (input_size,) + shape = (batch_size, sequence_length, input_size) data = np.reshape(range(0, np.prod(shape)), shape).astype(dtype) testName = "test_sequence_slice_{0}.{1}".format(beginIndex, endIndex) print(testName)