摘要:
原文:error: command ‘gcc‘ failed with exit status 1 点击直达 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(73)
评论(0)
推荐(0)
摘要:
命令如下: install itorch type command as following: sudo pip3 install ipython==5.2.0 sudo pip3 install notebook git clone https://gith... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(30)
评论(0)
推荐(0)
摘要:
1.用命令确定挂载位置 sudo mkdir disksudo mount -t ext4 /dev/sdb /media/upDiff/disk 2.在/etc/fstab中添加挂载 sudo gedit /etc/fstab #打开文件/dev/sd... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(55)
评论(0)
推荐(0)
摘要:
$ sudo rm /var/lib/apt/lists/* -vf $ sudo apt-get update 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(18)
评论(0)
推荐(0)
摘要:
安装pyTorch时,按照官网的命令进行安装 pip3 install http://download.pytorch.org/wh... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(332)
评论(0)
推荐(0)
摘要:
python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(82)
评论(0)
推荐(0)
摘要:
tf.constant需要用numpy array进行初始化,不能用tf自己的函数返回值,也就是tensor进行初始化赋值。 import tensorflow as tf import numpy as np arr=np.array([[1,2,3],[4... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(95)
评论(0)
推荐(0)
摘要:
1.安装最新版tf--tensorflow1.5,gpu版本需要CUDA8和cudnn6,命令如下 GPU版:sudo pip3 install tf-nightly-gpu CPU版:sudo pip3 install tf-nightly 对应pip网... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(52)
评论(0)
推荐(0)
摘要:
1.先卸载之前的版本 sudo pip3 uninstall tensorflow-gpu 2.安装新的tf sudo pip3 install tensorflow-gpu==1.3 3.tensorflow1.3需要CUDA8.0和cudnn6.0,因... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(61)
评论(0)
推荐(0)
摘要:
解决方法: sudo rm /var/lib/apt/lists/* -vfsudo apt-get update 之后执行 sudo apt-get upgrade 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(48)
评论(0)
推荐(0)

浙公网安备 33010602011771号