Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
NiuTrans.Tensor
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
8
Issues
8
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
NiuTrans
NiuTrans.Tensor
Commits
8449af7c
Commit
8449af7c
authored
Feb 16, 2021
by
liyinqiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge with the branch of xiaotong.
parent
bc0b129d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
9 行删除
+8
-9
source/tensor/XDevice.cpp
+0
-1
source/tensor/test/TSub.cpp
+4
-4
source/tensor/test/TSum.cpp
+4
-4
没有找到文件。
source/tensor/XDevice.cpp
查看文件 @
8449af7c
...
...
@@ -168,7 +168,6 @@ void XDevice::Clear()
GPUMaxThreadNum
=
0
;
MUTEX_DELE
(
cublasMutex
);
if
(
isHandleReady
)
{
cublasDestroy
(
cublasHandle
);
isHandleReady
=
false
;
...
...
source/tensor/test/TSub.cpp
查看文件 @
8449af7c
...
...
@@ -188,7 +188,7 @@ bool TestSub2()
/* call Sub function */
_Sub
(
aGPU
,
bGPU
,
cGPU
,
beta
);
_SubMe
(
cMeGPU
,
bGPU
,
beta
);
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
cGPU
,
answer
,
unitNum
,
1e-4
F
)
&&
...
...
@@ -287,7 +287,7 @@ bool TestSub3()
bGPU
->
SetData
(
bData
,
bUnitNum
);
/* call Sum function */
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
&
cUserGPU
,
answer
,
cUnitNum
,
1e-4
F
);
...
...
@@ -389,7 +389,7 @@ bool TestSub4()
bGPU
->
SetData
(
bData
,
bUnitNum
);
/* call Sum function */
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
&
cUserGPU
,
answer
,
cUnitNum
,
1e-4
F
);
...
...
@@ -491,7 +491,7 @@ bool TestSub5()
bGPU
->
SetData
(
bData
,
bUnitNum
);
/* call Sum function */
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sub
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
&
cUserGPU
,
answer
,
cUnitNum
,
1e-4
F
);
...
...
source/tensor/test/TSum.cpp
查看文件 @
8449af7c
...
...
@@ -188,7 +188,7 @@ bool TestSum2()
/* call Sum function */
_Sum
(
aGPU
,
bGPU
,
cGPU
,
beta
);
_SumMe
(
cMeGPU
,
bGPU
,
beta
);
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
cGPU
,
answer
,
unitNum
,
1e-4
F
)
&&
...
...
@@ -287,7 +287,7 @@ bool TestSum3()
bGPU
->
SetData
(
bData
,
bUnitNum
);
/* call Sum function */
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
&
cUserGPU
,
answer
,
cUnitNum
,
1e-4
F
);
...
...
@@ -389,7 +389,7 @@ bool TestSum4()
bGPU
->
SetData
(
bData
,
bUnitNum
);
/* call Sum function */
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
&
cUserGPU
,
answer
,
cUnitNum
,
1e-4
F
);
...
...
@@ -491,7 +491,7 @@ bool TestSum5()
bGPU
->
SetData
(
bData
,
bUnitNum
);
/* call Sum function */
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
beta
);
cUserGPU
=
Sum
(
*
aGPU
,
*
bGPU
,
false
,
beta
);
/* check results */
gpuTest
=
_CheckData
(
&
cUserGPU
,
answer
,
cUnitNum
,
1e-4
F
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论