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
2ed5a029
Commit
2ed5a029
authored
Jul 17, 2018
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix misuse of XLink::AddParamToHead
parent
51fe2255
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
source/tensor/core/getandset/Select.cpp
+2
-2
source/tensor/core/movement/CopyIndexed.cpp
+3
-3
source/tensor/core/reduce/ReduceMax.cpp
+1
-1
source/tensor/core/reduce/ReduceMean.cpp
+1
-1
source/tensor/core/reduce/ReduceSum.cpp
+1
-1
source/tensor/core/reduce/ReduceSumSquared.cpp
+1
-1
没有找到文件。
source/tensor/core/getandset/Select.cpp
查看文件 @
2ed5a029
...
...
@@ -119,8 +119,8 @@ XTensor SelectRange(const XTensor &a, int dim, int low, int high)
/* tensor connection */
XLink
::
MakeLink
(
&
a
,
NULL
,
&
c
,
GETANDSET_SELECT
);
XLink
::
AddParamToHead
(
&
c
,
low
);
XLink
::
AddParamToHead
(
&
c
,
high
);
XLink
::
AddParamToHead
Int
(
&
c
,
low
);
XLink
::
AddParamToHead
Int
(
&
c
,
high
);
/* destroy variables */
delete
[]
dimSize
;
...
...
source/tensor/core/movement/CopyIndexed.cpp
查看文件 @
2ed5a029
...
...
@@ -135,11 +135,11 @@ XTensor CopyIndexed(const XTensor &s, int dim, int * srcIndex, int indexSize, in
/* tensor connection */
XLink
::
MakeLink
(
&
s
,
NULL
,
&
t
,
MOVEMENT_COPYINDEXED
);
XLink
::
AddParamToHead
(
&
t
,
dim
);
XLink
::
AddParamToHead
Int
(
&
t
,
dim
);
XLink
::
AddParamToHeadPointer
(
&
t
,
srcIndex
);
XLink
::
AddParamToHead
(
&
t
,
indexSize
);
XLink
::
AddParamToHead
Int
(
&
t
,
indexSize
);
XLink
::
AddParamToHeadPointer
(
&
t
,
tgtIndex
);
XLink
::
AddParamToHead
(
&
t
,
copyNum
);
XLink
::
AddParamToHead
Int
(
&
t
,
copyNum
);
return
t
;
}
...
...
source/tensor/core/reduce/ReduceMax.cpp
查看文件 @
2ed5a029
...
...
@@ -125,7 +125,7 @@ XTensor ReduceMax(const XTensor &input, int dim)
/* tensor connection */
XLink
::
MakeLink
(
&
input
,
NULL
,
&
output
,
REDUCE_REDUCEMAX
);
XLink
::
AddParamToHead
(
&
output
,
dim
);
XLink
::
AddParamToHead
Int
(
&
output
,
dim
);
return
output
;
}
...
...
source/tensor/core/reduce/ReduceMean.cpp
查看文件 @
2ed5a029
...
...
@@ -79,7 +79,7 @@ XTensor ReduceMean(const XTensor &input, int dim)
/* tensor connection */
XLink
::
MakeLink
(
&
input
,
NULL
,
&
output
,
REDUCE_REDUCEMEAN
);
XLink
::
AddParamToHead
(
&
output
,
dim
);
XLink
::
AddParamToHead
Int
(
&
output
,
dim
);
/* destroy variables */
delete
[]
dimSize
;
...
...
source/tensor/core/reduce/ReduceSum.cpp
查看文件 @
2ed5a029
...
...
@@ -235,7 +235,7 @@ XTensor ReduceSum(const XTensor &input, int dim, const XTensor &shift, DTYPE pow
/* tensor connection */
XLink
::
MakeLink
(
&
input
,
&
shift
,
&
output
,
REDUCE_REDUCESUM
);
XLink
::
AddParamToHead
(
&
output
,
dim
);
XLink
::
AddParamToHead
Int
(
&
output
,
dim
);
XLink
::
AddParamToHead
(
&
output
,
power
);
/* destroy variables */
...
...
source/tensor/core/reduce/ReduceSumSquared.cpp
查看文件 @
2ed5a029
...
...
@@ -75,7 +75,7 @@ XTensor ReduceSumSquared(const XTensor &input, int dim, const XTensor &shift)
/* tensor connection */
XLink
::
MakeLink
(
&
input
,
&
shift
,
&
output
,
REDUCE_REDUCESUMSQUARED
);
XLink
::
AddParamToHead
(
&
output
,
dim
);
XLink
::
AddParamToHead
Int
(
&
output
,
dim
);
/* destroy variables */
delete
[]
dimSize
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论