提交 6478aecf authored 作者: slefrancois's avatar slefrancois

flake8

上级 178fcbd5
...@@ -380,4 +380,3 @@ if scikits_cuda_available: ...@@ -380,4 +380,3 @@ if scikits_cuda_available:
@op_lifter([theano.tensor.fft.IRFFTOp]) @op_lifter([theano.tensor.fft.IRFFTOp])
def local_cuirfft_op(node, context_name): def local_cuirfft_op(node, context_name):
return cuirfft_op return cuirfft_op
...@@ -260,4 +260,3 @@ class TestFFT(unittest.TestCase): ...@@ -260,4 +260,3 @@ class TestFFT(unittest.TestCase):
theano.gpuarray.fft.cuirfft(inputs, norm=123) theano.gpuarray.fft.cuirfft(inputs, norm=123)
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
theano.gpuarray.fft.cuirfft(inputs, is_odd=123) theano.gpuarray.fft.cuirfft(inputs, is_odd=123)
...@@ -20,6 +20,7 @@ message = ("The module theano.sandbox.fourier will soon be deprecated." ...@@ -20,6 +20,7 @@ message = ("The module theano.sandbox.fourier will soon be deprecated."
"automatic optimization transfers to the GPU ops.") "automatic optimization transfers to the GPU ops.")
warnings.warn(message) warnings.warn(message)
class GradTodo(Op): class GradTodo(Op):
# TODO : need description for class # TODO : need description for class
__props__ = () __props__ = ()
......
...@@ -206,4 +206,3 @@ def _unitary(norm): ...@@ -206,4 +206,3 @@ def _unitary(norm):
raise ValueError("Invalid value %s for norm, must be None, 'ortho' or " raise ValueError("Invalid value %s for norm, must be None, 'ortho' or "
"'no norm'" % norm) "'no norm'" % norm)
return norm return norm
...@@ -145,4 +145,3 @@ class Fourier(gof.Op): ...@@ -145,4 +145,3 @@ class Fourier(gof.Op):
fft = Fourier() fft = Fourier()
...@@ -189,4 +189,3 @@ class TestFFT(unittest.TestCase): ...@@ -189,4 +189,3 @@ class TestFFT(unittest.TestCase):
return fft.irfft(inp, norm='no_norm') return fft.irfft(inp, norm='no_norm')
inputs_val = numpy.random.random((1, N, N // 2 + 1, 2)).astype('float32') inputs_val = numpy.random.random((1, N, N // 2 + 1, 2)).astype('float32')
utt.verify_grad(f_irfft, [inputs_val], eps=eps) utt.verify_grad(f_irfft, [inputs_val], eps=eps)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论