提交 3e1612db authored 作者: Iban Harlouchet's avatar Iban Harlouchet

numpydoc for theano/sandbox/cuda/extra_ops.py

上级 472f91a0
...@@ -13,13 +13,19 @@ if cuda_available: ...@@ -13,13 +13,19 @@ if cuda_available:
class GpuCumsum(CumsumOp, GpuOp): class GpuCumsum(CumsumOp, GpuOp):
"""
Parameters
----------
axis
Can not be None. If you want the array flatten, do it before.
"""
SUPPORTED_NDIMS = 3 SUPPORTED_NDIMS = 3
__props__ = ('axis', 'max_threads_dim0', 'max_grid_size1', 'max_grid_size2') __props__ = ('axis', 'max_threads_dim0', 'max_grid_size1', 'max_grid_size2')
def __init__(self, axis): def __init__(self, axis):
"""
``axis`` can not be None. If you want the array flatten, do it before.
"""
self.axis = axis self.axis = axis
self.max_threads_dim0 = None self.max_threads_dim0 = None
self.max_grid_size1 = None self.max_grid_size1 = None
...@@ -415,11 +421,13 @@ class GpuCumsum(CumsumOp, GpuOp): ...@@ -415,11 +421,13 @@ class GpuCumsum(CumsumOp, GpuOp):
def values_eq_approx_high_tol(a, b): def values_eq_approx_high_tol(a, b):
"""This fct is needed to don't have DebugMode raise useless """
This fct is needed to don't have DebugMode raise useless
error due to rounding error. error due to rounding error.
This happen with big input size due to change in the order of This happen with big input size due to change in the order of
operation. operation.
""" """
rtol = None rtol = None
if a.size > 100000: if a.size > 100000:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论