Commit fe2e0d79 by xiaotong

add CopyValues to rename _CopyValues

parent 909c7236
......@@ -103,6 +103,17 @@ void _CopyValues(const XTensor * s, const int sBeg, const int sLen, XTensor * t,
ShowNTErrors("TODO!");
}
}
/*
copy s to t (rename _CopyValues)
>> s - source
>> t - target
>> stream - the stream for creating the job pipeline
*/
void CopyValues(const XTensor &s, XTensor &t, XStream * stream)
{
_CopyValues(&s, &t, stream);
}
/*
copy s to t (return an XTensor structure)
......
......@@ -32,6 +32,9 @@ void _CopyValues(const XTensor * s, XTensor * t, XStream * stream = NULL);
/* copy a segment of s to t */
void _CopyValues(const XTensor * s, const int sBeg, const int sLen, XTensor * t, const int tBeg, XStream * stream = NULL);
/* copy s to t (rename _CopyValues) */
void CopyValues(const XTensor &s, XTensor &t, XStream * stream = NULL);
/*
copy s to t (return an XTensor structure)
make a new tensor to keep the result and return it
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论