提交 158d817a authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2439 from lucasb-eyer/master

Python 3.x compatibility.
......@@ -14,7 +14,7 @@ def render_string(string, sub):
"""
try:
finalCode = string % sub
except Exception , E:
except Exception, E:
# If unable to render the string, render longer and longer
# initial substrings until we find the minimal initial substring
# that causes an error
......
......@@ -276,5 +276,5 @@ class ConvGrad3D(theano.Op):
convGrad3D = ConvGrad3D()
from Conv3D import conv3D
from ConvTransp3D import convTransp3D
from theano.tensor.nnet.Conv3D import conv3D
from theano.tensor.nnet.ConvTransp3D import convTransp3D
......@@ -426,5 +426,5 @@ def computeR(W, b, d, H, Rshape=None):
return R
from Conv3D import conv3D
from ConvGrad3D import convGrad3D
from theano.tensor.nnet.Conv3D import conv3D
from theano.tensor.nnet.ConvGrad3D import convGrad3D
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论