Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
NiuTrans.Tensor
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
Emmay
NiuTrans.Tensor
Commits
61b8d70f
Commit
61b8d70f
authored
Jul 04, 2018
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the description words
parent
b891e547
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
3 行删除
+5
-3
source/core/CopyInGrid.cpp
+2
-1
source/core/CopyInGrid.h
+1
-1
source/core/CopyIndexed.cpp
+2
-1
没有找到文件。
source/core/CopyInGrid.cpp
查看文件 @
61b8d70f
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
namespace
nts
{
// namespace nts(NiuTrans.Tensor)
namespace
nts
{
// namespace nts(NiuTrans.Tensor)
/*
/*
copy a number of blocks in grid
copy a number of blocks in grid,
i.e., reorder the data blocks in the same memory piece
>> s - source tensor
>> s - source tensor
>> t - target tensor
>> t - target tensor
>> index - index[offset_k + j] means the source block id for the j-th target block
>> index - index[offset_k + j] means the source block id for the j-th target block
...
...
source/core/CopyInGrid.h
查看文件 @
61b8d70f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
namespace
nts
{
// namespace nts(NiuTrans.Tensor)
namespace
nts
{
// namespace nts(NiuTrans.Tensor)
/* copy a number of blocks in grid
*/
/* copy a number of blocks in grid
. i.e., reorder the data blocks in the same memory piece
*/
extern
"C"
extern
"C"
void
CopyInGrid
(
XTensor
*
s
,
XTensor
*
t
,
int
*
index
,
int
blockDim
,
int
blockNumInGrid
,
bool
isIndexOnDev
=
false
);
void
CopyInGrid
(
XTensor
*
s
,
XTensor
*
t
,
int
*
index
,
int
blockDim
,
int
blockNumInGrid
,
bool
isIndexOnDev
=
false
);
...
...
source/core/CopyIndexed.cpp
查看文件 @
61b8d70f
...
@@ -29,7 +29,8 @@ copy indexed sub-tensors
...
@@ -29,7 +29,8 @@ copy indexed sub-tensors
>> s - the source tensor
>> s - the source tensor
>> t - the target tensor
>> t - the target tensor
>> dim - the leading dimension to define "sub-tensors"
>> dim - the leading dimension to define "sub-tensors"
e.g., for a tensor of size (3, 2, 4) and dim = 2, we have 4 sub-tensors of size (3,2)
e.g., for a tensor of size (3, 2, 4) and dim = 2,
we have 4 sub-tensors of size (3,2)
>> srcIndex - index of the source sub-tensors
>> srcIndex - index of the source sub-tensors
>> indexSize - length of srcIndex (and tgtIndex)
>> indexSize - length of srcIndex (and tgtIndex)
>> tgtIndex - index of the target sub-tensors
>> tgtIndex - index of the target sub-tensors
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论