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

Fixed Returns.

上级 a9a1db3b
......@@ -1020,7 +1020,8 @@ class GpuCAReduce(GpuOp):
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
......@@ -3223,7 +3224,8 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp):
Returns
-------
C code expression to make a copy of x.
str
C code expression to make a copy of x.
Notes
-----
......@@ -3293,7 +3295,8 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp):
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
......
......@@ -684,23 +684,21 @@ def sparse_block_dot_SS(W, h, inputIdx, b, outputIdx):
Parameters
----------
var
Shape, comment.
W
(iBlocks, oBlocks, iSize, oSize), weight matrix.
h
(batch, iWin, iSize), input from lower layer (sparse).
inputIdx
(batch, iWin), indexes of the input blocks.
b
(oBlocks, oSize), bias vector.
outputIdx
(batch, oWin), indexes of the output blocks.
W : (iBlocks, oBlocks, iSize, oSize)
Weight matrix.
h : (batch, iWin, iSize)
Input from lower layer (sparse).
inputIdx : (batch, iWin)
Indexes of the input blocks.
b : (oBlocks, oSize)
Bias vector.
outputIdx : (batch, oWin)
Indexes of the output blocks.
Returns
-------
(batch, oWin, oSize), dot(W[i, j], h[i]) + b[j]
but b[j] is only added once
(batch, oWin, oSize)
dot(W[i, j], h[i]) + b[j], but b[j] is only added once.
Notes
-----
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论