摘要: 初始化 tensor相关信息 改变tensor里的元素 tensor的提取 总说:select是直接提取某一维;narrow是取出某一维并进行裁剪; sub就是取出一块,是对取出的所有维进行裁剪。 语法: select(dim, index); narrow(dim, index, num); su 阅读全文
posted @ 2016-12-28 20:49 有梦就要去实现他 阅读(768) 评论(0) 推荐(0) 编辑