摘要: 用途 顾名思义,编译文件,主要是编译过程的配置文件(文件在哪,编译先后顺序,链接规则等等),也是可以操作内核的.make是一个命令工具,它解释Makefile 中的指令,而makefile语言完全兼容shell语言.与shell有相似的功能,因此也是可以和shell语言混合编程的. 主要是完成大的复 阅读全文
posted @ 2020-10-22 16:32 Parallax 阅读(179) 评论(0) 推荐(0) 编辑
摘要: """ 两个同shape的tensor,point-wise级别元素对应比较,前者大于后者,返回位置元素为1;前者小于等于后者,返回位置元素为0 """ >>> import torch >>> a=torch.randn(2,4) >>> a tensor([[-0.5466, 0.9203, - 阅读全文
posted @ 2020-10-22 11:56 Parallax 阅读(190) 评论(0) 推荐(0) 编辑
摘要: >>> import torch >>> >>> a = torch.randn(33, 55) >>> a.size() torch.Size([33, 55]) #repeat(repeat_counts_axis_0,repeat_counts_axis_1) >>> #(arg1,arg2, 阅读全文
posted @ 2020-10-22 11:44 Parallax 阅读(722) 评论(0) 推荐(0) 编辑