提交 355e19b1 authored 作者: lucasb-eyer's avatar lucasb-eyer

Python 3.x compatibility.

Removing the space in front of the comma seems necessary for python's 2to3 tool to recognize that instance, no kidding.
上级 b8446426
...@@ -14,7 +14,7 @@ def render_string(string, sub): ...@@ -14,7 +14,7 @@ def render_string(string, sub):
""" """
try: try:
finalCode = string % sub finalCode = string % sub
except Exception , E: except Exception, E:
# If unable to render the string, render longer and longer # If unable to render the string, render longer and longer
# initial substrings until we find the minimal initial substring # initial substrings until we find the minimal initial substring
# that causes an error # that causes an error
......
...@@ -276,5 +276,5 @@ class ConvGrad3D(theano.Op): ...@@ -276,5 +276,5 @@ class ConvGrad3D(theano.Op):
convGrad3D = ConvGrad3D() convGrad3D = ConvGrad3D()
from Conv3D import conv3D from theano.tensor.nnet.Conv3D import conv3D
from ConvTransp3D import convTransp3D from theano.tensor.nnet.ConvTransp3D import convTransp3D
...@@ -426,5 +426,5 @@ def computeR(W, b, d, H, Rshape=None): ...@@ -426,5 +426,5 @@ def computeR(W, b, d, H, Rshape=None):
return R return R
from Conv3D import conv3D from theano.tensor.nnet.Conv3D import conv3D
from ConvGrad3D import convGrad3D from theano.tensor.nnet.ConvGrad3D import convGrad3D
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论