提交 62c810f3 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

flake8 of theano/scalar/basic_scipy.py

上级 65019192
...@@ -296,17 +296,17 @@ class Psi(UnaryScalarOp): ...@@ -296,17 +296,17 @@ class Psi(UnaryScalarOp):
def c_support_code(self): def c_support_code(self):
return ( return (
""" """
// For GPU support // For GPU support
#ifdef __CUDACC__ #ifdef __CUDACC__
#define DEVICE __device__ #define DEVICE __device__
#else #else
#define DEVICE #define DEVICE
#endif #endif
#ifndef _PSIFUNCDEFINED #ifndef _PSIFUNCDEFINED
#define _PSIFUNCDEFINED #define _PSIFUNCDEFINED
DEVICE double _psi(double x){ DEVICE double _psi(double x){
/*taken from /*taken from
Bernardo, J. M. (1976). Algorithm AS 103: Bernardo, J. M. (1976). Algorithm AS 103:
...@@ -340,7 +340,7 @@ DEVICE double _psi(double x){ ...@@ -340,7 +340,7 @@ DEVICE double _psi(double x){
return psi_;} return psi_;}
#endif #endif
""" ) """)
def c_code(self, node, name, inp, out, sub): def c_code(self, node, name, inp, out, sub):
x, = inp x, = inp
......
...@@ -114,7 +114,6 @@ whitelist_flake8 = [ ...@@ -114,7 +114,6 @@ whitelist_flake8 = [
"tensor/nnet/tests/test_conv3d.py", "tensor/nnet/tests/test_conv3d.py",
"tensor/nnet/tests/speed_test_conv.py", "tensor/nnet/tests/speed_test_conv.py",
"tensor/nnet/tests/test_sigm.py", "tensor/nnet/tests/test_sigm.py",
"scalar/basic_scipy.py",
"scalar/basic_sympy.py", "scalar/basic_sympy.py",
"scalar/__init__.py", "scalar/__init__.py",
"scalar/basic.py", "scalar/basic.py",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论