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.]])# ***********
阅读全文
摘要:torch.ge torch.ge(input, other, out=None) → Tensor 逐元素比较input和other,即是否 input>=otherinput>=other。 如果两个张量有相同的形状和元素值,则返回True ,否则 False。 第二个参数可以为一个数或与第一个
阅读全文
摘要:0 anaconda conda 切换为清华大学镜像源 由于官方源下载速度太慢,所以切换清华镜像是很常见的conda安装方式,命令行中直接使用以下命令: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda
阅读全文

浙公网安备 33010602011771号