Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
11d58402
提交
11d58402
authored
5月 14, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Un-bump code version and document new parameters.
上级
afb65d0b
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
1 行删除
+8
-1
kernel_codegen.py
theano/sandbox/gpuarray/kernel_codegen.py
+8
-1
没有找到文件。
theano/sandbox/gpuarray/kernel_codegen.py
浏览文件 @
11d58402
...
@@ -121,7 +121,7 @@ def inline_reduce_prod(N, buf, pos, count):
...
@@ -121,7 +121,7 @@ def inline_reduce_prod(N, buf, pos, count):
lambda
a
,
b
:
"
%
s *
%
s"
%
(
a
,
b
))
lambda
a
,
b
:
"
%
s *
%
s"
%
(
a
,
b
))
@code_version
((
3
,)
+
inline_reduce_max
.
code_version
+
@code_version
((
2
,)
+
inline_reduce_max
.
code_version
+
inline_reduce_sum
.
code_version
)
inline_reduce_sum
.
code_version
)
def
inline_softmax
(
N
,
buf
,
buf2
,
threadPos
,
threadCount
,
dtype
=
"float32"
):
def
inline_softmax
(
N
,
buf
,
buf2
,
threadPos
,
threadCount
,
dtype
=
"float32"
):
"""
"""
...
@@ -173,10 +173,14 @@ def inline_reduce_fixed_shared(N, buf, x, stride_x, load_x, pos, count,
...
@@ -173,10 +173,14 @@ def inline_reduce_fixed_shared(N, buf, x, stride_x, load_x, pos, count,
:param N: length of the buffer
:param N: length of the buffer
:param buf: buffer pointer of size warpSize * sizeof(dtype)
:param buf: buffer pointer of size warpSize * sizeof(dtype)
:param x: input data
:param stride_x: input data stride
:param load_x: wrapper to read from x
:param pos: index of executing thread
:param pos: index of executing thread
:param count: number of executing threads
:param count: number of executing threads
:param b: Optional, pointer to the bias
:param b: Optional, pointer to the bias
:param stride_b: Optional, the stride of b if b is provided
:param stride_b: Optional, the stride of b if b is provided
:param load_b: Optional, wrapper to read from b if b is provided
:param dtype: Optional, the dtype of the output
:param dtype: Optional, the dtype of the output
:param manner_fn: a function that accepts strings of arguments a
:param manner_fn: a function that accepts strings of arguments a
...
@@ -270,12 +274,15 @@ def inline_softmax_fixed_shared(N, buf, x, stride_x, load_x,
...
@@ -270,12 +274,15 @@ def inline_softmax_fixed_shared(N, buf, x, stride_x, load_x,
:param buf: a shared memory buffer of size warpSize * sizeof(dtype)
:param buf: a shared memory buffer of size warpSize * sizeof(dtype)
:param x: a ptr to the gpu memory where the row is stored
:param x: a ptr to the gpu memory where the row is stored
:param stride_x: the stride between each element in x
:param stride_x: the stride between each element in x
:param load_x: wrapper to read from x
:param sm: a ptr to the gpu memory to store the result
:param sm: a ptr to the gpu memory to store the result
:param sm_stride: the stride between eash sm element
:param sm_stride: the stride between eash sm element
:param write_sm: wrapper before writing to sm
:param threadPos: index of executing thread
:param threadPos: index of executing thread
:param threadCount: number of executing threads
:param threadCount: number of executing threads
:param b: Optional, pointer to the bias
:param b: Optional, pointer to the bias
:param stride_b: Optional, the stride of b if b is provided
:param stride_b: Optional, the stride of b if b is provided
:param load_b: Optional, wrapper to read from b if b is provided
:param dtype: Optional, the dtype of the softmax's output if not float32
:param dtype: Optional, the dtype of the softmax's output if not float32
:Precondition: buf is empty
:Precondition: buf is empty
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论