提交 b152e5b9 authored 作者: Frederic's avatar Frederic

[TESTS] this fix a test while having concurrent PR that force pep8.

上级 c89e1bc2
...@@ -39,7 +39,8 @@ class CpuContiguous(theano.Op): ...@@ -39,7 +39,8 @@ class CpuContiguous(theano.Op):
code = """ code = """
if (!PyArray_CHKFLAGS(%(x)s, NPY_ARRAY_C_CONTIGUOUS)){ if (!PyArray_CHKFLAGS(%(x)s, NPY_ARRAY_C_CONTIGUOUS)){
// check to see if output is contiguous first // check to see if output is contiguous first
if (%(y)s != NULL && PyArray_CHKFLAGS(%(y)s, NPY_ARRAY_C_CONTIGUOUS)){ if (%(y)s != NULL &&
PyArray_CHKFLAGS(%(y)s, NPY_ARRAY_C_CONTIGUOUS)){
PyArray_CopyInto(%(y)s, %(x)s); PyArray_CopyInto(%(y)s, %(x)s);
} }
else{ else{
...@@ -60,6 +61,7 @@ class CpuContiguous(theano.Op): ...@@ -60,6 +61,7 @@ class CpuContiguous(theano.Op):
cpu_contiguous = CpuContiguous() cpu_contiguous = CpuContiguous()
class CumsumOp(theano.Op): class CumsumOp(theano.Op):
# See function cumsum for docstring # See function cumsum for docstring
def __init__(self, axis=None): def __init__(self, axis=None):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论