![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DL
风尘仆
这个作者很懒,什么都没留下…
展开
-
pytorch中创建tensor的几种方法
1.从numpy创建 https://pytorch.org/docs/stable/generated/torch.from_numpy.html 2.从list创建 3.指定维度的初始化 # 生成2行3列的数据 a = torch.empty(2, 3) b = torch.FloatTensor(2, 3) c = torch.IntTensor(2, 3) 4.随机初始化 # 采样自0~1均匀分布 a = torch.rand(3, 3) # 形如*_li...原创 2020-09-23 21:42:37 · 2823 阅读 · 0 评论 -
基于Arm64 ubuntu18.04配置ROS Melodic
1.设置系统源 deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse 注:ubuntu-ports 2.sudo apt-get update 3.配置ROS源 sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_COD..原创 2020-05-10 00:45:18 · 1557 阅读 · 2 评论