提交 e3988f04 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

remove calls to deprecated renderString

上级 30461788
......@@ -220,7 +220,7 @@ if(!work_complete){
}}}}}}} //extra scope so error handler jumps don't cross declarations
///////////// < /code generated by GpuConv3D >
"""
return strutil.renderString(codeSource,locals())
return strutil.render_string(codeSource,locals())
def c_support_code_apply(self, node, nodename):
# This code is not sensitive to the ignore_border flag.
......@@ -279,7 +279,7 @@ conv_rows_stack( float* img, float* kern, float* bias, float* out,
"""
return codeSource#renderString(codeSource,locals())
return codeSource
gpu_convd = GpuConv3D()
......
......@@ -336,7 +336,7 @@ convgrad_rows_stack( float* img, float* dCdH, float* dCdW,
dCdW[j,z,k,l,m] += dCdH[i,j,p,q,r] * V[i,z,dr*p+k,dc*q+l,dt*r+m]
*/
"""
return codeSource#renderString(codeSource,locals())
return codeSource
gpu_conv_grad3d = GpuConvGrad3D()
......
......@@ -263,7 +263,7 @@ if(!work_complete){
}}}}}} // for fail
///////////// < /code generated by GpuConvTransp3D >
"""
return strutil.renderString(codeSource,locals())
return strutil.render_string(codeSource,locals())
def c_support_code_apply(self, node, nodename):
# This code is not sensitive to the ignore_border flag.
......
......@@ -545,7 +545,7 @@ class Conv3D(theano.Op):
///////////// < /code generated by Conv3D >
"""
return strutil.renderString(codeSource,locals())
return strutil.render_string(codeSource,locals())
global conv3D
conv3D = Conv3D()
......
......@@ -271,7 +271,7 @@ class ConvGrad3D(theano.Op):
///////////// < /code generated by ConvGradW3D >
"""
return strutil.renderString(codeSource, locals())
return strutil.render_string(codeSource, locals())
convGrad3D = ConvGrad3D()
......
......@@ -324,7 +324,7 @@ class ConvTransp3D(theano.Op):
///////////// < /code generated by ConvTransp3D >
"""
return strutil.renderString(codeSource, locals())
return strutil.render_string(codeSource, locals())
convTransp3D = ConvTransp3D()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论