提交 22aa4c69 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Final flake8 fixes.

上级 f4d62299
......@@ -4,10 +4,10 @@ import copy
import os
import numpy
import os
import theano
from theano import tensor, gof, config
from theano.gof.utils import MethodNotDefined
from six.moves import StringIO
from theano.tensor.subtensor import IncSubtensor, Subtensor, get_idx_list
import theano.tensor.inplace
......@@ -674,7 +674,7 @@ if (GpuArray_vector_add_fast(%(out)s, %(y)s, %(ind)s)) {
itemsize_y = numpy.dtype(dtype_y).itemsize
itemsize_ind = numpy.dtype(dtype_ind).itemsize
itemsize_out = numpy.dtype(dtype_out).itemsize
flags=Kernel.get_flags(dtype_x, dtype_y, dtype_ind)
flags = Kernel.get_flags(dtype_x, dtype_y, dtype_ind)
type_x = gpuarray.dtype_to_ctype(dtype_x)
type_y = gpuarray.dtype_to_ctype(dtype_y)
type_ind = gpuarray.dtype_to_ctype(dtype_ind)
......@@ -765,8 +765,7 @@ __device__ ga_half atomicAdd(ga_half *addr, ga_half val) {
params = [
'uintp', 'uintp', 'intp', 'intp', gpuarray.GpuArray, 'uintp',
'uintp', 'uintp', 'intp', 'intp', gpuarray.GpuArray, 'uintp',
'uintp', 'intp', gpuarray.GpuArray, 'uintp', gpuarray.GpuArray
]
'uintp', 'intp', gpuarray.GpuArray, 'uintp', gpuarray.GpuArray]
return [Kernel(code=code, name=kname, params=params,
flags=flags, objvar=k_var)]
......
......@@ -161,7 +161,6 @@ whitelist_flake8 = [
"sandbox/linalg/tests/test_linalg.py",
"sandbox/gpuarray/basic_ops.py",
"sandbox/gpuarray/nnet.py",
"sandbox/gpuarray/subtensor.py",
"sandbox/gpuarray/elemwise.py",
"sandbox/gpuarray/type.py",
"sandbox/gpuarray/__init__.py",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论