提交 4a62c892 authored 作者: Frederic's avatar Frederic

remove -Werror warning as this make the compilation fail with numpy 1.7b1

上级 00183e72
...@@ -161,7 +161,6 @@ class Conv3D(theano.Op): ...@@ -161,7 +161,6 @@ class Conv3D(theano.Op):
def c_compile_args(self): def c_compile_args(self):
flags = ldflags(libs=False, flags=True) flags = ldflags(libs=False, flags=True)
flags.append('-Werror')
return flags return flags
def c_lib_dirs(self): def c_lib_dirs(self):
......
...@@ -85,10 +85,6 @@ class ConvGrad3D(theano.Op): ...@@ -85,10 +85,6 @@ class ConvGrad3D(theano.Op):
output_storage[0][0] = dCdW output_storage[0][0] = dCdW
def c_compile_args(self):
flags = ['-Werror']
return flags
def c_code(self, node, nodename, inputs, outputs, sub): def c_code(self, node, nodename, inputs, outputs, sub):
V, d, WShape, dCdH = inputs V, d, WShape, dCdH = inputs
fail = sub['fail'] fail = sub['fail']
......
...@@ -35,10 +35,6 @@ class ConvTransp3D(theano.Op): ...@@ -35,10 +35,6 @@ class ConvTransp3D(theano.Op):
return theano.Apply(self, inputs=[W_,b_,d_,H_, RShape_], outputs = [ T.TensorType(H_.dtype, (False,False,False,False,False))() ] ) return theano.Apply(self, inputs=[W_,b_,d_,H_, RShape_], outputs = [ T.TensorType(H_.dtype, (False,False,False,False,False))() ] )
def c_compile_args(self):
flags = ['-Werror']
return flags
def infer_shape(self, node, input_shapes): def infer_shape(self, node, input_shapes):
W, b, d, H, RShape = node.inputs W, b, d, H, RShape = node.inputs
W_shape, b_shape, d_shape, H_shape, RShape_shape = input_shapes W_shape, b_shape, d_shape, H_shape, RShape_shape = input_shapes
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论