From 65dcc374777a11f5bb51f550ef77c88eeb41f9c4 Mon Sep 17 00:00:00 2001 From: Mitchell Stern Date: Thu, 22 Dec 2016 05:29:10 -0800 Subject: [PATCH] Python 3 bugfix: builder_layers must be a list, not a zip object --- python/_dynet.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/_dynet.pyx b/python/_dynet.pyx index 78769e198..923e168a8 100644 --- a/python/_dynet.pyx +++ b/python/_dynet.pyx @@ -384,7 +384,7 @@ cdef class Model: # {{{ tp,num = tp.split("~",1) num = int(num) items = [self._load_one(itypes, loader, pfh) for _ in xrange(num)] - return BiRNNBuilder(None, None, None, None, None, zip(items[0::2], items[1::2])) + return BiRNNBuilder(None, None, None, None, None, list(zip(items[0::2], items[1::2]))) elif tp.startswith("user~"): # user defiend type tp,num = tp.split("~",1)