提交 2e109782 authored 作者: James Bergstra's avatar James Bergstra

FIX: reverting to prehistoric Python compatibility

上级 d2ee7a06
"""
VMs that run Theano graph computations.
"""
import collections
import logging
import sys
import time
......@@ -270,7 +269,7 @@ class Stack(VM):
compute_map[k][0] = (k.owner is None)
# apply_stack contains nodes
apply_stack = collections.deque(self.base_apply_stack)
apply_stack = list(self.base_apply_stack)
last_apply_stack_len = -1
ls = []
while apply_stack:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论