Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
835c39f4
提交
835c39f4
authored
1月 12, 2014
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor typo fixes in doc
上级
262f59a2
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
basic.txt
doc/library/tensor/basic.txt
+5
-5
conv.cu
theano/sandbox/gpuarray/conv.cu
+1
-1
conv.py
theano/sandbox/gpuarray/conv.py
+4
-4
conv_kernel.cu
theano/sandbox/gpuarray/conv_kernel.cu
+1
-1
没有找到文件。
doc/library/tensor/basic.txt
浏览文件 @
835c39f4
...
...
@@ -846,18 +846,18 @@ Reductions
:Parameter: *no_zeros_in_input* - The grad of prod is complicated
as we need to handle 3 different cases: without zeros in the
input reduced group, with 1 zero
s
or with more zeros.
input reduced group, with 1 zero or with more zeros.
This could slow you down, but more importantly, we currently
don't support the second derivative of the 3 cases. So you
can
not take the second derivative of the default prod().
cannot take the second derivative of the default prod().
To remove the handling of the special cases of 0 and so get
some small speed up and allow second derivative set
``no_zeros_in_inputs`` to ``True``. It default to ``False``.
``no_zeros_in_inputs`` to ``True``. It default
s
to ``False``.
**It is the user respons
ability to make sure there is
no zeros
in the inputs. If there
is
, the grad will be wrong.**
**It is the user respons
ibility to make sure there are
no zeros
in the inputs. If there
are
, the grad will be wrong.**
:Returns: product of every term in *x* along *axis*
...
...
theano/sandbox/gpuarray/conv.cu
浏览文件 @
835c39f4
// REMEMBER TO
RAI
SE c_code_cache_version when changing this file
// REMEMBER TO
INCREA
SE c_code_cache_version when changing this file
//
//TODO detect SHARED_SIZE dynamically
#define SHARED_SIZE (16*1024)
...
...
theano/sandbox/gpuarray/conv.py
浏览文件 @
835c39f4
...
...
@@ -31,21 +31,21 @@ class GpuConv(gof.Op):
imshp
=
None
,
max_threads_dim0
=
None
):
"""
:param version: each version of c_code implement
many kernel
for the
:param version: each version of c_code implement
s many kernels
for the
convolution. By default we try to guess the best one.
You can force one version with this parameter. This
parameter is used by the tests.
:param verbose: for value of 1,2 and 3. Print more information during
the execution of the convolution. Mostly used for
optimization or debugging.
:param kshp: The size of the kernel. If provided, can genera
:param kshp: The size of the kernel. If provided, can genera
te
faster code. If the GpuConv op is automatically
inserted,
we take its value automatically from the Conv op.
:param imshp: The size of the image. Not used for code generation but
allow to select an experimental new version in another
allow
s
to select an experimental new version in another
repo.
:param max_threads_dim0: The maximum number of thread for the
:param max_threads_dim0: The maximum number of thread
s
for the
block size dimensions 0 (blockDim.x) used by the
GPU function.
...
...
theano/sandbox/gpuarray/conv_kernel.cu
浏览文件 @
835c39f4
// REMEMBER TO
RAI
SE c_code_cache_version when changing this file
// REMEMBER TO
INCREA
SE c_code_cache_version when changing this file
//
//implement the valid convolution only
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论