Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
1c06a20a
提交
1c06a20a
authored
3月 08, 2012
作者:
Yann N. Dauphin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added missing blas dot operation
上级
6d7cb0c5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
sp2.py
theano/sparse/sandbox/sp2.py
+3
-5
blas_headers.py
theano/tensor/blas_headers.py
+2
-0
没有找到文件。
theano/sparse/sandbox/sp2.py
浏览文件 @
1c06a20a
...
@@ -742,10 +742,10 @@ class SamplingDotCsr(gof.Op):
...
@@ -742,10 +742,10 @@ class SamplingDotCsr(gof.Op):
if
dot_out
==
"float32"
:
if
dot_out
==
"float32"
:
conv_type
=
"float"
conv_type
=
"float"
cdot
=
"sdot_
sub_
"
cdot
=
"sdot_"
else
:
else
:
conv_type
=
"double"
conv_type
=
"double"
cdot
=
"ddot_
sub_
"
cdot
=
"ddot_"
# retrieve dtype number
# retrieve dtype number
typenum_x
=
node
.
inputs
[
0
]
.
type
.
dtype_specs
()[
-
1
]
typenum_x
=
node
.
inputs
[
0
]
.
type
.
dtype_specs
()[
-
1
]
...
@@ -839,9 +839,7 @@ class SamplingDotCsr(gof.Op):
...
@@ -839,9 +839,7 @@ class SamplingDotCsr(gof.Op):
const dtype_
%(y)
s* y_col = (dtype_
%(y)
s*)(
%(y)
s->data +
%(y)
s->strides[0] * n);
const dtype_
%(y)
s* y_col = (dtype_
%(y)
s*)(
%(y)
s->data +
%(y)
s->strides[0] * n);
%(cdot)
s((int*)&K, (const
%(conv_type)
s*)x_row, (int*)&Sdx, (const
%(conv_type)
s*)y_col, (int*)&Sdy, &Dzd[n_idx * Sdzd]);
Dzd[n_idx * Sdzd] = Dpd[n_idx * Sdpd] *
%(cdot)
s((int*)&K, (const
%(conv_type)
s*)x_row, (int*)&Sdx, (const
%(conv_type)
s*)y_col, (int*)&Sdy);
Dzd[n_idx * Sdzd] *= Dpd[n_idx * Sdpd];
}
}
}
}
}
}
...
...
theano/tensor/blas_headers.py
浏览文件 @
1c06a20a
...
@@ -604,6 +604,7 @@ def blas_header_text():
...
@@ -604,6 +604,7 @@ def blas_header_text():
void sswap_( const int*, float *, const int*, float *, const int*);
void sswap_( const int*, float *, const int*, float *, const int*);
void scopy_( const int*, const float *, const int*, float *, const int*);
void scopy_( const int*, const float *, const int*, float *, const int*);
void saxpy_( const int*, const float *, const float *, const int*, float *, const int*);
void saxpy_( const int*, const float *, const float *, const int*, float *, const int*);
float sdot_(const int*, const float *, const int*, const float *, const int*);
void sdot_sub_(const int*, const float *, const int*, const float *, const int*, float *);
void sdot_sub_(const int*, const float *, const int*, const float *, const int*, float *);
void sdsdot_sub_( const int*, const float *, const float *, const int*, const float *, const int*, float *);
void sdsdot_sub_( const int*, const float *, const float *, const int*, const float *, const int*, float *);
void sscal_( const int*, const float *, float *, const int*);
void sscal_( const int*, const float *, float *, const int*);
...
@@ -621,6 +622,7 @@ def blas_header_text():
...
@@ -621,6 +622,7 @@ def blas_header_text():
void dcopy_( const int*, const double *, const int*, double *, const int*);
void dcopy_( const int*, const double *, const int*, double *, const int*);
void daxpy_( const int*, const double *, const double *, const int*, double *, const int*);
void daxpy_( const int*, const double *, const double *, const int*, double *, const int*);
void dswap_( const int*, double *, const int*, double *, const int*);
void dswap_( const int*, double *, const int*, double *, const int*);
double ddot_(const int*, const double *, const int*, const double *, const int*);
void dsdot_sub_(const int*, const float *, const int*, const float *, const int*, double *);
void dsdot_sub_(const int*, const float *, const int*, const float *, const int*, double *);
void ddot_sub_( const int*, const double *, const int*, const double *, const int*, double *);
void ddot_sub_( const int*, const double *, const int*, const double *, const int*, double *);
void dscal_( const int*, const double *, double *, const int*);
void dscal_( const int*, const double *, double *, const int*);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论