02 2020 档案

摘要:1 numpy与CUDA之间的转换 1.tensor张量与numpy相互转换 tensor >numpy import torcha=torch.ones([2,5]) tensor([[1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.]])# *********** 阅读全文
posted @ 2020-02-22 19:29 lqchen 阅读(23740) 评论(0) 推荐(1)
摘要:torch.ge torch.ge(input, other, out=None) → Tensor 逐元素比较input和other,即是否 input>=otherinput>=other。 如果两个张量有相同的形状和元素值,则返回True ,否则 False。 第二个参数可以为一个数或与第一个 阅读全文
posted @ 2020-02-22 19:24 lqchen 阅读(4846) 评论(0) 推荐(0)
摘要:0 anaconda conda 切换为清华大学镜像源 由于官方源下载速度太慢,所以切换清华镜像是很常见的conda安装方式,命令行中直接使用以下命令: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda 阅读全文
posted @ 2020-02-21 23:31 lqchen 阅读(2385) 评论(0) 推荐(0)