提交 88716ac9 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

Fixed Returns.

上级 a9a1db3b
...@@ -1020,7 +1020,8 @@ class GpuCAReduce(GpuOp): ...@@ -1020,7 +1020,8 @@ class GpuCAReduce(GpuOp):
Returns Returns
------- -------
C code to reduce left and right, assigning the result to left. str
C code to reduce left and right, assigning the result to left.
""" """
x, = node.inputs x, = node.inputs
...@@ -3223,7 +3224,8 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp): ...@@ -3223,7 +3224,8 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp):
Returns Returns
------- -------
C code expression to make a copy of x. str
C code expression to make a copy of x.
Notes Notes
----- -----
...@@ -3293,7 +3295,8 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp): ...@@ -3293,7 +3295,8 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp):
Returns Returns
------- -------
A C code expression to copy source into view, and 0 on success. str
A C code expression to copy source into view, and 0 on success.
""" """
# On the CPU it unbroadcast based on the run time shapes. We # On the CPU it unbroadcast based on the run time shapes. We
......
...@@ -684,23 +684,21 @@ def sparse_block_dot_SS(W, h, inputIdx, b, outputIdx): ...@@ -684,23 +684,21 @@ def sparse_block_dot_SS(W, h, inputIdx, b, outputIdx):
Parameters Parameters
---------- ----------
var W : (iBlocks, oBlocks, iSize, oSize)
Shape, comment. Weight matrix.
W h : (batch, iWin, iSize)
(iBlocks, oBlocks, iSize, oSize), weight matrix. Input from lower layer (sparse).
h inputIdx : (batch, iWin)
(batch, iWin, iSize), input from lower layer (sparse). Indexes of the input blocks.
inputIdx b : (oBlocks, oSize)
(batch, iWin), indexes of the input blocks. Bias vector.
b outputIdx : (batch, oWin)
(oBlocks, oSize), bias vector. Indexes of the output blocks.
outputIdx
(batch, oWin), indexes of the output blocks.
Returns Returns
------- -------
(batch, oWin, oSize), dot(W[i, j], h[i]) + b[j] (batch, oWin, oSize)
but b[j] is only added once dot(W[i, j], h[i]) + b[j], but b[j] is only added once.
Notes Notes
----- -----
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论