将Tensor进行深拷贝,返回拷贝后得到的Tensor。
Tensor Clone(AscendStream stream=AscendStream::DefaultStream()) const;
参数名 |
输入/输出 |
说明 |
---|---|---|
stream |
输入 |
AscendStream类型,默认值为AscendStream::DefaultStream()。当参数值为默认值时,接口为同步操作,其他情况下,接口为异步操作。 |
数据结构 |
说明 |
---|---|
Tensor |
Tensor类,请参见Tensor。 |